瀏覽代碼

fix: Merge branch 'xj' of http://192.168.0.115:3000/bill/public-fuse into xj

bill 1 年之前
父節點
當前提交
5357327cc9
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 2
      src/app/mirror/store/script.ts
  2. 1 0
      src/request/index.ts

+ 2 - 2
src/app/mirror/store/script.ts

@@ -59,7 +59,7 @@ export enum FirePaggingRoute {
 }
 
 export const getCaseScriptInfo = async (caseId) =>
-  (await axios.get(getCaseScriptInfoUrl, { params:{caseId} })).data;
+  (await axios.get(getCaseScriptInfoUrl, { params:{caseId, ingoreRes: true} }));
 
 export const CaseScriptSaveOrUpdate = async (fire: Omit<Fire, "id">) =>
-  axios.post(getCaseScriptSaveOrUpdateUrl, fire);
+  axios.post(getCaseScriptSaveOrUpdateUrl, fire, {params: {ingoreRes: true}});

+ 1 - 0
src/request/index.ts

@@ -45,6 +45,7 @@ axios.interceptors.request.use(async (config) => {
   }
 
   const { token, userId } = getAuth();
+  console.log(config.url, token, userId)
   if (!token && !~notLoginUrls.indexOf(config.url)) {
     router.replace({ name: RouteName.login });
     throw "用户未登录";