Browse Source

任务管理

ZaiZai 1 year ago
parent
commit
d2044f8937
3 changed files with 10 additions and 4 deletions
  1. 1 1
      public/version.json
  2. 1 1
      src/config/index.json
  3. 8 2
      src/store/modules/user.js

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20231229111023"
+  "value": "20231229113409"
 }

+ 1 - 1
src/config/index.json

@@ -1,6 +1,6 @@
 {
     "version": "20230607160059",
-    "target": "http://192.168.0.109:8090",
+    "target": "http://47.110.251.215:8090",
     "smsPhone": "",
     "vite": {
         "port": 5180,

+ 8 - 2
src/store/modules/user.js

@@ -55,9 +55,15 @@ const getHomeRouter = async (arr) => {
         }
     })
     //处理数据
-    if (menus.length <= 0) return false
+    if (menus.length <= 0) {
+        store.setHomeUrl('home-index')
+        return false
+    }
     const code = menus[0]?.children[0]?.children[0]?.code
-    if (isNullES(code)) return false
+    if (isNullES(code)) {
+        store.setHomeUrl('home-index')
+        return false
+    }
     store.setHomeUrl(code)
     return true
 }