Commit 9edf88b37afcc23f6c586a0f7937a726320fd9fc
1 parent
7e31efcf
v3.7.0 默认首页使用keep-alive缓存
Showing
3 changed files
with
3 additions
and
3 deletions
yudao-ui-admin/src/router/index.js
| @@ -65,7 +65,7 @@ export const constantRoutes = [ | @@ -65,7 +65,7 @@ export const constantRoutes = [ | ||
| 65 | path: 'index', | 65 | path: 'index', |
| 66 | component: (resolve) => require(['@/views/index'], resolve), | 66 | component: (resolve) => require(['@/views/index'], resolve), |
| 67 | name: '首页', | 67 | name: '首页', |
| 68 | - meta: {title: '首页', icon: 'dashboard', noCache: true, affix: true} | 68 | + meta: {title: '首页', icon: 'dashboard', affix: true} |
| 69 | } | 69 | } |
| 70 | ] | 70 | ] |
| 71 | }, { | 71 | }, { |
yudao-ui-admin/src/utils/request.js
| @@ -73,7 +73,7 @@ service.interceptors.response.use(res => { | @@ -73,7 +73,7 @@ service.interceptors.response.use(res => { | ||
| 73 | location.href = '/index'; | 73 | location.href = '/index'; |
| 74 | }) | 74 | }) |
| 75 | }).catch(() => {}); | 75 | }).catch(() => {}); |
| 76 | - return Promise.reject() | 76 | + return Promise.reject('令牌验证失败') |
| 77 | } else if (code === 500) { | 77 | } else if (code === 500) { |
| 78 | Message({ | 78 | Message({ |
| 79 | message: msg, | 79 | message: msg, |