diff --git a/yudao-ui-admin/src/router/index.js b/yudao-ui-admin/src/router/index.js index f6856efef..7fc4f89ee 100644 --- a/yudao-ui-admin/src/router/index.js +++ b/yudao-ui-admin/src/router/index.js @@ -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} } ] }, { diff --git a/yudao-ui-admin/src/utils/request.js b/yudao-ui-admin/src/utils/request.js index 6195d7ee7..c7f5eff1c 100644 --- a/yudao-ui-admin/src/utils/request.js +++ b/yudao-ui-admin/src/utils/request.js @@ -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, diff --git a/yudao-ui-admin/src/views/index_old.vue b/yudao-ui-admin/src/views/index_old.vue index 59c1bd187..eca2439e5 100644 --- a/yudao-ui-admin/src/views/index_old.vue +++ b/yudao-ui-admin/src/views/index_old.vue @@ -489,7 +489,7 @@