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


##########
dashboard/src/main/webapp/src/utils/http.js:
##########
@@ -16,24 +16,21 @@
  */
 
 import request from "@/utils/request";
+
 const http = {
-    get(url, params, headers) {
-        const config = {
-            method: 'GET',
-            url: url,
-            params: params,
-            headers: headers
+    get(url, params, headers, fontBackFlag) {
+        if (fontBackFlag == 0) {
+            return request.getBackEndAxiosInstance().get(url,{params,headers});
+        } else {
+            return request.getFontEndAxiosInstance().get(url,{params,headers});
         }
-        return request(config);
     },
-    post(url, data, headers) {
-        const config = {
-            method: 'POST',
-            url: url,
-            data: data,
-            headers: headers
+    post(url, data, headers, fontBackFlag) {
+        if (fontBackFlag == 0) {
+            return request.getBackEndAxiosInstance().post(url,data,headers);
+        } else {
+            return request.getFontEndAxiosInstance().post(url,data,headers);

Review Comment:
   ```suggestion
               return request.getFrontEndAxiosInstance().post(url,data,headers);
   ```



-- 
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