|
|
@ -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) |
|
|
|