فهرست منبع

destroy不生效

Luolei 6 سال پیش
والد
کامیت
fb5ec6bfa7
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 4 0
      src/components/icss/PubTagGroup.vue
  2. 2 1
      src/components/icss/PubTagPartDetail.vue

+ 4 - 0
src/components/icss/PubTagGroup.vue

@@ -293,6 +293,10 @@ export default {
       systom:null,      //标签系统名称存在与否
     }
   },
+  beforeDestroy:function(){
+    console.log(995)
+    this.searchVal = ''
+  },
   computed: {
     newSex() {
       return this.form.region7;

+ 2 - 1
src/components/icss/PubTagPartDetail.vue

@@ -135,7 +135,8 @@ export default {
     }
   },
 
-  destroyed:function(){
+  beforeDestroy:function(){
+    console.log(99)
     this.searchVal = ''
   },
   data() {