28169 hace 1 semana
padre
commit
0b2c1ec338
Se han modificado 2 ficheros con 14 adiciones y 14 borrados
  1. 1 1
      src/xt_pages/user/components/PatientForm.vue
  2. 13 13
      src/xt_permission.js

+ 1 - 1
src/xt_pages/user/components/PatientForm.vue Ver fichero

@@ -1186,7 +1186,7 @@ const defaultForm = {
1186 1186
   response_result: "",
1187 1187
   remind_cycle: 0,
1188 1188
   record_date: "",
1189
-  patient_type:"1",
1189
+  patient_type:1,
1190 1190
   tell_phone: "",
1191 1191
   first_treatment_date: "",
1192 1192
   dialysis_age: "",

+ 13 - 13
src/xt_permission.js Ver fichero

@@ -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))