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', path: 'index',
component: (resolve) => require(['@/views/index'], resolve), component: (resolve) => require(['@/views/index'], resolve),
name: '首页', 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'; location.href = '/index';
}) })
}).catch(() => {}); }).catch(() => {});
return Promise.reject() return Promise.reject('令牌验证失败')
} else if (code === 500) { } else if (code === 500) {
Message({ Message({
message: msg, message: msg,

View File

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