-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Open
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: keep-alive
Description
Vue version
3.2.45
Link to minimal reproduction
https://codesandbox.io/s/musing-tristan-jjobbr?file=/src/views/components/Page2.vue
Steps to reproduce
首次执行1次onMounted 打印,page1 但点击切换到page2, 再点击page1 会发现执行了多次onMounted
What is expected?
希望只执行当前页面的onMounted,只打印一次
What is actually happening?
执行多次onMouted
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: keep-alive
