默认首页使用keep-alive缓存

pull/95/MERGE
RuoYi 3 years ago
parent 0e7c45173c
commit 98c538c9e3

@ -66,8 +66,8 @@ export const constantRoutes = [
{
path: 'index',
component: (resolve) => require(['@/views/index'], resolve),
name: '首页',
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
}
]
},

@ -51,7 +51,7 @@ service.interceptors.response.use(res => {
location.href = '/index';
})
}).catch(() => {});
return Promise.reject()
return Promise.reject('令牌验证失败')
} else if (code === 500) {
Message({
message: msg,

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

Loading…
Cancel
Save