소스 검색

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() {