소스 검색

fix:路由文件

刘恒 1 년 전
부모
커밋
e3ba9ffd06
3개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      .env.development
  2. 1 0
      src/router/modules/operation.ts
  3. 1 1
      src/store/modules/route.ts

+ 2 - 2
.env.development

@@ -4,8 +4,8 @@ VITE_APP_SETTING = true
 VITE_APP_TITLE = 掌柜运营平台
 # 接口请求地址,会设置到 axios 的 baseURL 参数上
 # VITE_APP_API_BASEURL = https://test.baoxianzhanggui.com/web-api #默认地址
-#VITE_APP_API_BASEURL = http://192.168.0.53:8001  #田智
-VITE_APP_API_BASEURL = http://192.168.0.106:8001  #屈晨
+VITE_APP_API_BASEURL = http://192.168.0.253:8001  #田智
+# VITE_APP_API_BASEURL = http://192.168.0.106:8001  #屈晨
 #VITE_APP_API_BASEURL = http://192.168.0.59:8001  #徐强
 
 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空

+ 1 - 0
src/router/modules/operation.ts

@@ -19,6 +19,7 @@ const routes: RouteRecordRaw = {
       meta: {
         title: '业务员详情',
         sidebar: false,
+        menu:false,
       },
     },
     {

+ 1 - 1
src/store/modules/route.ts

@@ -183,7 +183,7 @@ const useRouteStore = defineStore(
       }).then((res) => {
         // console.log(JSON.parse(res.data.sysConfig))
         // 设置 routes 数据
-        routesRaw.value = formatBackRoutes(JSON.parse(res.data.sysConfig)) as any
+        routesRaw.value = converDeprecatedAttribute(formatBackRoutes(JSON.parse(res.data.sysConfig)) as any)
         // console.log(routesRaw.value,66666)
         isGenerate.value = true
       }).catch(() => {})