提交错题本
This commit is contained in:
+5
-6
@@ -61,8 +61,8 @@ export default function request({
|
||||
data,
|
||||
meta,
|
||||
isStream,
|
||||
suppressErrors,
|
||||
toastErrors,
|
||||
suppressErrors = false,
|
||||
toastErrors = true,
|
||||
header = {},
|
||||
timeout = 6000,
|
||||
baseUrl = ''
|
||||
@@ -97,10 +97,9 @@ export default function request({
|
||||
const res = response.data
|
||||
if (res?.rtnCode === '0000') {
|
||||
return resolve(res)
|
||||
} else {
|
||||
if (toastErrors) {
|
||||
common.msg(res?.message)
|
||||
}
|
||||
} else if (toastErrors) {
|
||||
// common.msg(res?.message)
|
||||
|
||||
}
|
||||
//到这里下面全是异常的处理
|
||||
if (suppressErrors) { // 静默的接口,报错也不处理,因为下面有公共处理
|
||||
|
||||
Reference in New Issue
Block a user