Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tagsview 刷新 component onmounted 执行了俩次 #7

Open
779022431 opened this issue Nov 24, 2021 · 1 comment
Open

tagsview 刷新 component onmounted 执行了俩次 #7

779022431 opened this issue Nov 24, 2021 · 1 comment

Comments

@779022431
Copy link

tabview 刷新 component onmounted 执行了俩次

@779022431
Copy link
Author

779022431 commented Nov 25, 2021

<router-view v-slot='{ Component }'> <keep-alive :include='keepAliveNameList'> <component :is='Component' :key='refreshRouterViewKey' class='w100' /> </keep-alive> </router-view>

发生这种情况是把 transition 去掉, 加回来就不会发生了 ,不知道为啥。

<router-view v-slot='{ Component }'> <transition name="" mode="out-in"> <keep-alive :include='keepAliveNameList'> <component :is='Component' :key='refreshRouterViewKey' class='w100' /> </keep-alive> </transition> </router-view>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant