mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
fix: 修复宝塔授权测试按钮显示错误的bug
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user