소스 검색

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

zws 7 달 전
부모
커밋
e76eda8af3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()
 })