浏览代码

模板bug

Luolei 6 年之前
父节点
当前提交
699461c5c6
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/icss/PubTemplateGroup.vue

+ 3 - 3
src/components/icss/PubTemplateGroup.vue

@@ -172,18 +172,18 @@ export default {
         }else{
           this.sonLis = []
           if(!this.form.id){
-            this.getTypes()
             this.form.region4 = ''
             this.form.region1 = ''
+            this.getTypes()
           }
         }
       }
     },
     tmpOwnTo(newVal, preVal){
-      if(newVal != preVal){
+      if(newVal&&newVal != preVal){
           if(!this.form.id){
-            this.getTypes()
             this.form.region1 = ''
+            this.getTypes()
           }
           if(this.form.isCopy){
             this.getTypes('copy')