Browse Source

feat: 增加个销毁勾子

zh 2 năm trước cách đây
mục cha
commit
1d91b74c03
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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()