mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
perf: 增加权威NS检查开关,某些用户服务器禁止向黑名单NS服务器发请求
This commit is contained in:
@@ -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">各类通知里面会以地址1作为URL显示</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;
|
||||
|
||||
Reference in New Issue
Block a user