From f2ed53b7fb41b1d15334934bf8caeea798ddcf2f Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期四, 27 六月 2024 16:51:41 +0800
Subject: [PATCH] 1
---
plugins/http.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/http.js b/plugins/http.js
index 7d532e9..bbbf997 100644
--- a/plugins/http.js
+++ b/plugins/http.js
@@ -70,7 +70,7 @@
code: 0,
msg: ''
})
- } else if (res.data.code === '3000') {
+ } else if (res.data.code === '3000'||res.data.code === '30000') {
if (Array.isArray(res.data.data)) {
if (res.data.data.length > 0 && res.data.data[0]
.errorMessage) {
@@ -86,7 +86,7 @@
code: parseInt(res.data.code),
msg: res.data.data
})
- } else if (res.data.code === '4000') {
+ } else if (res.data.code === '4000'||res.data.code === '40000') {
message.showToast('系统异常')
} else {
if (res.data.data && typeof res.data.data === 'string') {
@@ -191,7 +191,7 @@
let header = {
Authorization: token ? `Bearer ${token}` : null,
}
- var url = environments.httpBaseUri + '/api/upload/file'
+ var url = environments.httpBaseUri + '/api/upload/oss/file'
if (environments.type == 'prod') {
//需要拼接
var year = utils.toYear(new Date())
--
Gitblit v1.9.3