Преглед на файлове

Merge branch '20201014_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201014_pc_vue_new_branch

See999 преди 4 години
родител
ревизия
f049179e78
променени са 3 файла, в които са добавени 14 реда и са изтрити 4 реда
  1. 4 4
      src/App.vue
  2. 9 0
      src/router/modules/dialysis.js
  3. 1 0
      src/xt_pages/index/verify_token.vue

+ 4 - 4
src/App.vue Целия файл

@@ -17,7 +17,7 @@ export default {
17 17
       showWsErr: false,
18 18
     }
19 19
   },
20
-  
20
+
21 21
   created(){
22 22
     // getOrgs().then(response => {
23 23
     //   if (response.data.state === 1) {
@@ -28,7 +28,7 @@ export default {
28 28
     //     this.getToken(creator.org_id,creator.admin_user_id)
29 29
     //   }
30 30
     // });
31
-    
31
+
32 32
   },
33 33
   methods: {
34 34
     reload () {
@@ -37,9 +37,9 @@ export default {
37 37
         this.isRouterAlive = true
38 38
       })
39 39
     },
40
-    
40
+
41 41
   },
42
-  
42
+
43 43
 };
44 44
 </script>
45 45
 

+ 9 - 0
src/router/modules/dialysis.js Целия файл

@@ -11,6 +11,15 @@ export default {
11 11
     icon: 'touxi'
12 12
   },
13 13
   children: [
14
+    {
15
+      path: '/dialysis/home',
16
+      component: () => import('@/xt_pages/home/index'),
17
+      name: 'home',
18
+      meta: {
19
+        title: 'home',
20
+        noCache: true
21
+      }
22
+    },
14 23
     {
15 24
       path: '/dialysis/watch',
16 25
       component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),

+ 1 - 0
src/xt_pages/index/verify_token.vue Целия файл

@@ -16,6 +16,7 @@ export default {
16 16
           this.$router.addRoutes(this.$store.getters.xt_permission.addRouters) // 动态添加可访问路由表
17 17
   //        next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
18 18
           this.$router.replace({ path: '/dialysis/dialysisrecord' })
19
+
19 20
         })
20 21
       })
21 22
     }).catch((error) => {