From 9692dce5436bd82f57f166ef83399ddf4fd203e4 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 15 Jul 2021 16:26:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=AE=A2=E6=88=B7->?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=90=88=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.js | 4 ++-- src/utils/http.js | 2 +- src/views/customer/AddCustomer.vue | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 17241d2..e5f4c83 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -18,9 +18,9 @@ export default { */ initialPassword: '111aaa', /** - * 所属平台:1->职站 2->数据平台 + * 所属平台:1->职站 2->数据平台 3->中台 */ - platformId: 1, + platformId: 3, /** * @description 系统列表 */ diff --git a/src/utils/http.js b/src/utils/http.js index 4c86c9b..532b93d 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -40,7 +40,7 @@ axios.interceptors.request.use(config => { axios.interceptors.response.use( response => { if (response.status === 200) { - if(response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态 + if(response.data.status && response.data.status!==200){// 接口定义的非正常返回的时候,应当处于报错状态 Message.error(response.data.message) return Promise.reject(response); } diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index 9b0b776..5e35c29 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -182,8 +182,8 @@ -