v3.7.0 默认首页使用keep-alive缓存
This commit is contained in:
parent
7e31efcfe2
commit
9edf88b37a
@ -65,7 +65,7 @@ export const constantRoutes = [
|
||||
path: 'index',
|
||||
component: (resolve) => require(['@/views/index'], resolve),
|
||||
name: '首页',
|
||||
meta: {title: '首页', icon: 'dashboard', noCache: true, affix: true}
|
||||
meta: {title: '首页', icon: 'dashboard', affix: true}
|
||||
}
|
||||
]
|
||||
}, {
|
||||
|
@ -73,7 +73,7 @@ service.interceptors.response.use(res => {
|
||||
location.href = '/index';
|
||||
})
|
||||
}).catch(() => {});
|
||||
return Promise.reject()
|
||||
return Promise.reject('令牌验证失败')
|
||||
} else if (code === 500) {
|
||||
Message({
|
||||
message: msg,
|
||||
|
@ -489,7 +489,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "index",
|
||||
name: "Index",
|
||||
data() {
|
||||
return {
|
||||
// 版本号
|
||||
|
Loading…
Reference in New Issue
Block a user