ソースを参照

修复路由修改后BUG

fanghuisheng 9 ヶ月 前
コミット
22a49187b0

+ 1 - 1
src/pages/business/fireIot/repairReport/index.vue

@@ -13,7 +13,7 @@
       <view class="list-cell">
         <view class="menu-item font14">
           <view style="margin-right: auto; color: #666666"></view>
-          <view style="color: #149eff" @click="proxy.$tab.navigateTo(`/pages/common/repairReport/record`)">报修历史</view>
+          <view style="color: #149eff" @click="proxy.$tab.navigateTo(`/pages/business/fireIot/repairReport/record`)">报修历史</view>
         </view>
 
         <u--form :model="form" ref="uForm" :rules="rules" labelWidth="80">

+ 2 - 2
src/pages/business/fireIot/repairReport/record.vue

@@ -42,7 +42,7 @@ import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue
 import { getToken, setToken, removeToken } from "@/utils/auth";
 import { useStores, commonStores } from "@/store/modules/index";
 
-import { getHistory } from "@/api/common/repairReport.js";
+import { getHistory } from "@/api/business/fireIot/repairReport.js";
 
 const { proxy } = getCurrentInstance();
 const useStore = useStores();
@@ -116,7 +116,7 @@ onLoad((options) => {
   }
 
   if (!getToken() && !dataStatus.value) {
-    proxy.$tab.redirectTo(`/pages/common/phoneVerify/index?path=${"/pages/common/repairReport/record"}`);
+    proxy.$tab.redirectTo(`/pages/common/phoneVerify/index?path=${"/pages/business/fireIot/repairReport/record"}`);
   } else {
     init();
   }

+ 2 - 2
src/permission.js

@@ -16,8 +16,8 @@ const whiteList = [
   "/pages/common/invoicing/index",//开票管理
   "/pages/common/success/index",//成功
   "/pages/common/phoneVerify/index",//手机号验证
-  "/pages/common/repairReport/index",//报修申请
-  "/pages/common/repairReport/record",//报修历史
+  "/pages/business/fireIot/repairReport/index",//报修申请
+  "/pages/business/fireIot/repairReport/record",//报修历史
   "/pages/common/evaluate/record",//服务评价
   "/pages/common/NFC/index",//NFC读取
   "/pages/common/appMessage/details",//消息详情