fix: 修复宝塔授权测试按钮显示错误的bug

pull/409/head
xiaojunnuo 2025-04-28 21:33:07 +08:00
parent 27a405fb1d
commit 048696ee93
2 changed files with 0 additions and 3 deletions

View File

@ -69,12 +69,10 @@ function createService() {
const err = new CodeError(errorMessage, dataAxios.code, dataAxios.data); const err = new CodeError(errorMessage, dataAxios.code, dataAxios.data);
// @ts-ignore // @ts-ignore
response.config.onError(err); response.config.onError(err);
return;
} }
//@ts-ignore //@ts-ignore
const showErrorNotify = response?.config?.showErrorNotify; const showErrorNotify = response?.config?.showErrorNotify;
errorCreate(`${errorMessage}: ${response.config.url}`, showErrorNotify, dataAxios); errorCreate(`${errorMessage}: ${response.config.url}`, showErrorNotify, dataAxios);
return dataAxios;
} }
}, },
error => { error => {

View File

@ -67,7 +67,6 @@ export function errorLog(error: any, notify = true) {
/** /**
* @description * @description
* @param {String} msg
*/ */
export function errorCreate(msg: string, notify = true, data?: any) { export function errorCreate(msg: string, notify = true, data?: any) {
const err = new CodeError(msg, data.code, data.data); const err = new CodeError(msg, data.code, data.data);