瀏覽代碼

feat: 增加个销毁勾子

zh 2 年之前
父節點
當前提交
1d91b74c03
共有 1 個文件被更改,包括 3 次插入0 次删除
  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()