mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
pref: 允许忽略自签证书校验
This commit is contained in:
@@ -53,7 +53,9 @@ function createService() {
|
||||
// @ts-ignore
|
||||
response.config.onError(new Error(errorMessage));
|
||||
}
|
||||
errorCreate(`${errorMessage}: ${response.config.url}`);
|
||||
//@ts-ignore
|
||||
const showErrorNotify = response?.config?.showErrorNotify;
|
||||
errorCreate(`${errorMessage}: ${response.config.url}`, showErrorNotify);
|
||||
return dataAxios;
|
||||
}
|
||||
}
|
||||
@@ -97,7 +99,7 @@ function createService() {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
errorLog(error);
|
||||
errorLog(error, error?.response?.config?.showErrorNotify);
|
||||
if (status === 401) {
|
||||
const userStore = useUserStore();
|
||||
userStore.logout();
|
||||
|
||||
Reference in New Issue
Block a user