|
|
@@ -266,9 +266,9 @@ export default new (class {
|
|
|
return Promise.resolve(res)
|
|
|
}
|
|
|
const { getErrorInfoByCode } = useErrorInfoStore()
|
|
|
- const msg = getErrorInfoByCode(res.RetCode ?? res.Status) + (res.RetCode != undefined ? `[${res.RetCode}]` : '')
|
|
|
+ const msg = getErrorInfoByCode(res.RetCode ?? res.Status)
|
|
|
const error = String(res.RetDesc || res.RetCode || res.Status)
|
|
|
- return Promise.reject(msg ?? error)
|
|
|
+ return Promise.reject((res.RetCode ? `[${res.RetCode}]` : '') + (msg ?? error))
|
|
|
}
|
|
|
}
|
|
|
}
|