xianjingfeng commented on code in PR #1449:
URL:
https://github.com/apache/incubator-uniffle/pull/1449#discussion_r1464344873
##########
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:
Or maybe you can use local storage and get `targetAddress` from the local
storage before invoking the http interfaces
--
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]