This commit is contained in:
2025-11-06 18:31:30 +08:00
parent 43ae68fed7
commit 61cde58679
5 changed files with 291 additions and 44 deletions
@@ -17,7 +17,7 @@ const commonUtil = {
if (response.config.responseType === "blob") {
return response
}
if (response.data && response.data.code !== 0 && response.data.code !== 99) {
if (response.data && response.data.code !== "200" && response.data.code !== 0 && response.data.code !== 99) {
if (isMobile) {
vant.Toast.fail(response.data.msg)
} else {
@@ -318,7 +318,7 @@ function base64ToFile(base64Data, filename) {
return new File([blob], filename, {type: contentType})
}
function createLoading(text= '加载中...'){
function createLoading(text = '加载中...') {
return ELEMENT.Loading.service({
lock: true,
text: text,