Ver Fonte

feat: 增加个销毁勾子

zh há 2 anos atrás
pai
commit
1d91b74c03
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/layout/components/AppMain.vue

+ 3 - 0
src/layout/components/AppMain.vue

@@ -57,6 +57,9 @@ export default {
   mounted() {
     this.handleInterVal()
   },
+  beforeDestroy() {
+    this.handleClearInterVal()
+  },
   methods: {
     handleInterVal() {
       this.handleClearInterVal()