fix: 演示模式提示html格式

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

View File

@ -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(
'<div>' +
ElMessage.error({
duration: 5,
offset: 300,
dangerouslyUseHTMLString: true,
message:
'<div>' +
t('sys.api.errMsg901') +
'</div>' +
'<div> &nbsp; </div>' +
'<div>参考 https://doc.iocoder.cn/ 教程</div>' +
'<div> &nbsp; </div>' +
'<div>5 分钟搭建本地环境</div>'
)
})
return Promise.reject(new Error(msg))
} else if (code !== 200) {
if (msg === '无效的刷新令牌') {