From bd003e9d6226e5116c41f9f77c7b3ddddb7b8d5f Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Fri, 1 Nov 2024 14:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E5=AF=86=E7=A0=81=E4=B8=8D=E5=AF=B9=E6=97=B6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=B0=86=E8=8B=B1=E6=96=87=E6=94=B9=E6=88=90=E4=B8=AD?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/http.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/http/yskApi/http.js b/http/yskApi/http.js index b3305c5..67aef22 100644 --- a/http/yskApi/http.js +++ b/http/yskApi/http.js @@ -17,13 +17,13 @@ import infoBox from "@/commons/utils/infoBox.js" import go from '@/commons/utils/go.js'; import { reject } from 'lodash'; // 测试服 -// let baseUrl = 'https://admintestpapi.sxczgkj.cn' +let baseUrl = 'https://admintestpapi.sxczgkj.cn' //预发布 // let baseUrl = 'https://pre-cashieradmin.sxczgkj.cn' //正式 -let baseUrl = 'https://cashieradmin.sxczgkj.cn' +// let baseUrl = 'https://cashieradmin.sxczgkj.cn' // 王伟本地测 // let baseUrl = '/ww' @@ -96,6 +96,7 @@ function commonsProcess(showLoading, httpReqCallback) { // http响应码不正确 if (statusCode != 200 && statusCode != 204 && statusCode != 201) { isShowErrorToast = true + data.message=data.message=='Bad credentials'?'用户名或密码错误':data.message infoBox.showToast(data.message || '服务器异常') return Promise.reject(bodyData) // 跳转到catch函数 }