From a59a8e7bd6e973877b15b4506896c9807e3a569a Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Tue, 6 Dec 2022 16:36:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BC=94=E7=A4=BA=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=8F=90=E7=A4=BAhtml=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vue3/src/config/axios/service.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 === '无效的刷新令牌') {