Przeglądaj źródła

前端用户中心

lusa 4 dni temu
rodzic
commit
97b9f7f57d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      ui/sp-storlead-center/src/utils/request.ts

+ 2 - 2
ui/sp-storlead-center/src/utils/request.ts

@@ -62,7 +62,7 @@ service.interceptors.request.use(
         // get请求映射params参数
         if (config.method === 'get' && config.params) {
             if (menuId && config.params) {
-                config.params['scopeMenuId'] = menuId;
+                config.params['scopeMenuId'] = String(menuId);
             }
             console.log(config.params, ">>??????????????????????");
             let url = config.url + '?' + tansParams(config.params);
@@ -73,7 +73,7 @@ service.interceptors.request.use(
 
         if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put')) {
             if (menuId && config.data) {
-                config.data['scopeMenuId'] = menuId;
+                config.data['scopeMenuId'] = String(menuId);
             }
             console.log(config.data, ">>??????????????????????");
             const requestObj = {