Переглянути джерело

修改诊断依据修改跳转

zhangxc 5 роки тому
батько
коміт
dc71afdadb
1 змінених файлів з 7 додано та 4 видалено
  1. 7 4
      src/components/diagBase/DiagBase.vue

+ 7 - 4
src/components/diagBase/DiagBase.vue

@@ -123,10 +123,13 @@ export default {
         }
     },
     created() {
-        this.getDropList()
-        this.getDataList()
-        const userLoginDTO= JSON.parse(localStorage.getItem('userLoginDTO'))
-        this.modifier = userLoginDTO && userLoginDTO.linkman
+        this.$nextTick(()=>{
+          this.getDropList()
+          this.getDataList()
+          const userLoginDTO= JSON.parse(localStorage.getItem('userLoginDTO'))
+          this.modifier = userLoginDTO && userLoginDTO.linkman
+        }) 
+       
     },
   watch: {
     'filter': {