Просмотр исходного кода

解决了花材列表添加按钮不请求的问题

yangming 5 лет назад
Родитель
Сommit
ac023487cf
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      ghs/src/components/module/item-list-layer.vue

+ 7 - 2
ghs/src/components/module/item-list-layer.vue

@@ -145,14 +145,18 @@ export default {
       //分类列表
       itemClassList: [],
       sonClassId: 0,
-      sonClassName: ''
+      sonClassName: '',
+      newApp: ''
     };
   },
   computed: {
   },
   watch: {
-    show () {
+    show (val) {
       this.selDialog = this.show;
+      if(val) {
+        this.newApp.refresh()
+      }
     }
   },
   created () { },
@@ -199,6 +203,7 @@ export default {
 
       this.sonClassId = this.classId
       this.sonClassName = this.className
+      this.newApp = app
 
       //分类列表
       this.getAllClass()