fix: 演示模式提示html格式

This commit is contained in:
xingyu4j 2022-12-06 16:36:50 +08:00
parent b7587db059
commit a59a8e7bd6

View File

@ -168,7 +168,11 @@ 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:
'<div>' +
t('sys.api.errMsg901') +
'</div>' +
@ -176,7 +180,7 @@ service.interceptors.response.use(
'<div>参考 https://doc.iocoder.cn/ 教程</div>' +
'<div> &nbsp; </div>' +
'<div>5 分钟搭建本地环境</div>'
)
})
return Promise.reject(new Error(msg))
} else if (code !== 200) {
if (msg === '无效的刷新令牌') {