Parcourir la source

代码提交:
1031知识分享

sunruiqi il y a 2 ans
Parent
commit
004563843e
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/views/modules/knowledgeShare/InfoList.vue

+ 4 - 4
src/views/modules/knowledgeShare/InfoList.vue

@@ -114,10 +114,6 @@
     created () {
       this.knowledgeShareInfoService = new KnowledgeShareInfoService()
       this.knowledgeShareTypeService = new KnowledgeShareTypeService()
-      this.userService = new UserService()
-      this.knowledgeShareTypeService.list().then(({data}) => {
-        this.typeList = data.records
-      })
     },
     components: {
       InfoForm,
@@ -144,6 +140,10 @@
       },
       // 获取数据列表
       refreshList () {
+        this.userService = new UserService()
+        this.knowledgeShareTypeService.list().then(({data}) => {
+          this.typeList = data.records
+        })
         this.loading = true
         this.is()
         this.create = JSON.parse(localStorage.getItem('user')).name