Pārlūkot izejas kodu

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

zws 7 mēneši atpakaļ
vecāks
revīzija
e76eda8af3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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()
   start()
 }
 }
 
 
-onMounted(() => {
+onBeforeMount(() => {
   initTags()
   initTags()
   addTags()
   addTags()
 })
 })