mirror of
https://gitee.com/yudaocode/yudao-mall-uniapp.git
synced 2025-12-30 09:42:25 +00:00
!149 fix:响应拦截器"showError为false"时弹报错信息,条件不符逻辑。
Merge pull request !149 from SuchJack/master
This commit is contained in:
@@ -204,7 +204,7 @@ http.interceptors.response.use(
|
||||
}
|
||||
|
||||
if (error && error.config) {
|
||||
if (error.config.custom.showError === false) {
|
||||
if (error.config.custom.showError) {
|
||||
uni.showToast({
|
||||
title: error.data?.msg || errorMessage,
|
||||
icon: 'none',
|
||||
|
||||
Reference in New Issue
Block a user