瀏覽代碼

hah阿凡达

28169 1 周之前
父節點
當前提交
ba1f934da0
共有 2 個文件被更改,包括 17 次插入17 次删除
  1. 4 4
      src/xt_pages/user/components/PatientSidebar.vue
  2. 13 13
      src/xt_permission.js

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue 查看文件

@@ -179,10 +179,10 @@ export default {
179 179
             //   name: '3-3',
180 180
             //   label: '体格检查新'
181 181
             // },
182
-             {
183
-              name: '3-5',
184
-              label: '病程记录新'
185
-             },
182
+            //  {
183
+            //   name: '3-5',
184
+            //   label: '病程记录新'
185
+            //  },
186 186
             {
187 187
               name: '1-11',
188 188
               label: '首次病程记录'

+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))