diff --git a/yudao-ui-admin-vue3/src/config/axios/service.ts b/yudao-ui-admin-vue3/src/config/axios/service.ts index a574cbbad..89e899fa5 100644 --- a/yudao-ui-admin-vue3/src/config/axios/service.ts +++ b/yudao-ui-admin-vue3/src/config/axios/service.ts @@ -168,15 +168,19 @@ service.interceptors.response.use( ElMessage.error(t('sys.api.errMsg500')) return Promise.reject(new Error(msg)) } else if (code === 901) { - ElMessage.error( - '
' + + ElMessage.error({ + duration: 5, + offset: 300, + dangerouslyUseHTMLString: true, + message: + '
' + t('sys.api.errMsg901') + '
' + '
 
' + '
参考 https://doc.iocoder.cn/ 教程
' + '
 
' + '
5 分钟搭建本地环境
' - ) + }) return Promise.reject(new Error(msg)) } else if (code !== 200) { if (msg === '无效的刷新令牌') {