v3.7.0 默认首页使用keep-alive缓存

This commit is contained in:
YunaiV 2022-02-17 01:34:38 +08:00
parent 7e31efcfe2
commit 9edf88b37a
3 changed files with 3 additions and 3 deletions

View File

@ -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}
}
]
}, {

View File

@ -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,

View File

@ -489,7 +489,7 @@
<script>
export default {
name: "index",
name: "Index",
data() {
return {
//