菜单栏增加单页面刷新功能
1.移除带参路由来回切换data 2.只刷新当前router,不影响其他已缓存的router
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
<div class="d2-theme-container-main-body" flex-box="1">
|
||||
<transition :name="transitionActive ? 'fade-transverse' : ''">
|
||||
<keep-alive :include="keepAlive">
|
||||
<router-view/>
|
||||
<router-view :key="$route.path + $route.meta[$route.path]" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user