Przeglądaj źródła

fix: 修复组件在keepAlive下刷新不触发onActivated钩子问题

zws 7 miesięcy temu
rodzic
commit
e76eda8af3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/layout/components/TagsView/src/TagsView.vue

+ 1 - 1
src/layout/components/TagsView/src/TagsView.vue

@@ -243,7 +243,7 @@ const move = (to: number) => {
   start()
 }
 
-onMounted(() => {
+onBeforeMount(() => {
   initTags()
   addTags()
 })