xianjingfeng commented on code in PR #1870:
URL:
https://github.com/apache/incubator-uniffle/pull/1870#discussion_r1671739284
##########
dashboard/src/main/webapp/src/utils/http.js:
##########
@@ -48,6 +48,21 @@ const http = {
} else {
return request.getFrontEndAxiosInstance().post(url, data, headers)
}
+ },
+ delete(url, params, headers, fontBackFlag) {
+ if (fontBackFlag === 0) {
+ // The system obtains the address of the Coordinator to be accessed from
global variables.
+ const currentServerStore = useCurrentServerStore()
+ if (typeof headers !== 'undefined') {
+ headers.targetAddress = currentServerStore.currentServer
+ } else {
+ headers = {}
+ headers.targetAddress = currentServerStore.currentServer
+ }
Review Comment:
```suggestion
if (headers) {
headers.targetAddress = currentServerStore.currentServer
} else {
headers = { targetAddress : currentServerStore.currentServer}
}
```
Maybe this works, I'm not sure.
--
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]