Browse Source

修改bug

master
前端-胡立永 4 months ago
parent
commit
bccac9640b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/request.js

+ 1
- 1
utils/request.js View File

@ -39,7 +39,7 @@ request.interceptors.response.use(res => {
}
if (res.data.code != 200) {
if(res.data.message.includes('操作失败')){
if(res.data.message && res.data.message.includes('操作失败')){
uni.$u.toast(uni.$resMessage['操作失败'])
}else{
uni.$u.toast(uni.$resMessage[res.data.message] || res.data.message)


Loading…
Cancel
Save