fix(setup): 彻底移除向导中的公网reset地址预览并收敛至本地IPC重置说明
Some checks failed
Build and Release / Build Release Package (tar.gz, amd64, linux) (push) Has been cancelled
Build and Release / Build Release Package (tar.gz, arm64, linux) (push) Has been cancelled
Build and Release / Build Release Package (zip, amd64, windows) (push) Has been cancelled

This commit is contained in:
xuans 2026-10-21 12:19:36 +08:00
parent b3badc9e1f
commit 751f027989
2 changed files with 4 additions and 18 deletions

View File

@ -104,18 +104,7 @@ export function useSetupWizard(props, emit) {
const targetLabel = computed(() =>
targetType.value === "hostname" ? "管理页面域名" : "公网 IP 地址",
);
const resetURLPreview = computed(() => {
const rawHost =
targetType.value === "hostname"
? form.value.web_hostname
: form.value.web_public_ip;
const host = String(rawHost || "")
.trim()
.replace(/^\[|\]$/g, "");
if (!host) return "完成域名或公网 IP 配置后自动生成";
const displayHost = host.includes(":") ? `[${host}]` : host;
return `https://${displayHost}/reset`;
});
const selectedDNSProvider = computed(
() =>
dnsProviders.value.find(
@ -807,7 +796,6 @@ export function useSetupWizard(props, emit) {
emailAutofillElement,
handleEmailAutofill,
targetLabel,
resetURLPreview,
selectedDNSProvider,
dnsVerificationValid,
formatVerificationExpiry,

View File

@ -48,7 +48,6 @@ const {
emailAutofillElement,
handleEmailAutofill,
targetLabel,
resetURLPreview,
selectedDNSProvider,
dnsVerificationValid,
formatVerificationExpiry,
@ -296,10 +295,9 @@ const {
:error="databaseError"
@test="testDatabase"
/>
<div class="provider-description reset-preview">
<strong>密码重置地址预览</strong>
<span>{{ resetURLPreview }}</span>
<span>只有手动启动 Scert-admin 后,此地址才会临时可用。</span>
<div class="provider-description admin-reset-tip">
<strong>安全运维提示</strong>
<span>生产环境已禁用公网 /reset 地址。超级管理员密码重置仅支持在物理宿主机通过系统管理员终端运行 <code>scert.exe admin localreset</code>,在受保护的本地 IPC 域内安全重置。</span>
</div>
</fieldset>