From d91c23a3dc8cb22c0a5b2bbb5a74c6aac37469b5 Mon Sep 17 00:00:00 2001 From: xuxy <1059738716@qq.com> Date: 星期三, 03 七月 2024 11:35:02 +0800 Subject: [PATCH] update 分类过滤 --- 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