perf: 增加权威NS检查开关,某些用户服务器禁止向黑名单NS服务器发请求

This commit is contained in:
xiaojunnuo
2026-04-27 00:16:14 +08:00
parent eab66e2d19
commit 1aa50cf53a
13 changed files with 242 additions and 180 deletions
@@ -109,6 +109,7 @@ export type SysPrivateSetting = {
type?: string;
config?: any;
};
acmeWalkFromAuthoritative?: boolean;
//http请求超时时间
httpRequestTimeout?: number;
@@ -303,8 +303,18 @@ export const useSettingStore = defineStore({
}
};
const { closable = false } = opts;
let title = "URL地址未绑定,是否绑定此地址?";
let okButtonText = "不,回到原来的地址";
let okButtonDanger = false;
let forceBack = true;
if (closable) {
title = "绑定URL";
okButtonText = "确定";
okButtonDanger = false;
forceBack = false;
}
const modalRef: any = Modal.warning({
title: "URL地址未绑定,是否绑定此地址?",
title: title,
width: 500,
keyboard: false,
closable,
@@ -320,6 +330,7 @@ export const useSettingStore = defineStore({
1
</a-button>
</div>
<div class="helper">1URL显示</div>
<div class="flex items-center justify-between mt-3">
<span>
2
@@ -334,12 +345,14 @@ export const useSettingStore = defineStore({
},
onOk: async () => {
// await this.doBindUrl();
window.location.href = bindUrl;
if (forceBack) {
window.location.href = bindUrl;
}
},
okButtonProps: {
danger: true,
danger: okButtonDanger,
},
okText: "不,回到原来的地址",
okText: okButtonText,
// cancelText: "不,回到原来的地址",
// onOk: () => {
// window.location.href = bindUrl;