新增返回警告消息提示

This commit is contained in:
RuoYi 2022-10-30 11:55:15 +08:00
parent 1ffc739253
commit c7fa74116c
1 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,12 @@ service.interceptors.response.use(res => {
type: 'error'
})
return Promise.reject(new Error(msg))
} else if (code === 601) {
ElMessage({
message: msg,
type: 'warning'
})
return Promise.reject(new Error(msg))
} else if (code !== 200) {
ElNotification.error({
title: msg