[update] - 解决一级菜单路由自动缓存的bug
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
</a-tabs>
|
||||
<div style="margin: 12px 12px 0; overflow-x: auto">
|
||||
<!-- update-begin-author:taoyan date:20201221 for:此处删掉transition标签 不知道为什么加上后 页面路由切换的时候即1及菜单切到2及菜单的时候 两个菜单页面会同时出现300-500秒左右 -->
|
||||
<keep-alive v-if="multipage">
|
||||
<keep-alive v-if="multipage && keepAlive">
|
||||
<router-view :key="$route.fullPath" v-if="reloadFlag"/>
|
||||
</keep-alive>
|
||||
<template v-else>
|
||||
@@ -72,6 +72,9 @@
|
||||
},
|
||||
/* update_end author:wuxianquan date:20190828 for: 关闭当前tab页,供子页面调用->望菜单能配置外链,直接弹出新页面而不是嵌入iframe #428 */
|
||||
computed: {
|
||||
keepAlive() {
|
||||
return this.$route.meta.keepAlive
|
||||
},
|
||||
multipage() {
|
||||
//判断如果是手机模式,自动切换为单页面模式
|
||||
if (this.isMobile()) {
|
||||
|
||||
Reference in New Issue
Block a user