Explorar o código

feat: 增加个销毁勾子

zh %!s(int64=2) %!d(string=hai) anos
pai
achega
1d91b74c03
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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()