yl09099 commented on code in PR #1449:
URL: 
https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1460739140


##########
dashboard/src/main/webapp/src/pages/CoordinatorServerPage.vue:
##########
@@ -94,17 +95,27 @@ export default {
           serverInfo: {}
         }
     );
-    async function getCoordinatorServerConfPage() {
-      const res = await getCoordinatorConf();
+    async function getCoordinatorServerConfPage(headers) {
+      const res = await getCoordinatorConf({},headers)
       pageData.tableData = res.data.data
     }
-    async function getCoorServerInfo() {
-      const res = await getCoordinatorServerInfo();
+    async function getCoorServerInfo(headers) {
+      const res = await getCoordinatorServerInfo({},headers)
       pageData.serverInfo = res.data.data
     }
+
+    //The system obtains data from global variables and requests the interface 
to obtain new data after data changes.
+    const currentServerStore= useCurrentServerStore()
+    currentServerStore.$subscribe((mutable,state)=>{
+      const headrs={"targetAddress":state.currentServer}

Review Comment:
   > Is it better that passing this parameter through cookie?
   
   This is global. The role of cookies is not well understood.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to