From 0d655152b18d528cbceb3e70c1c28a4b31efd99d Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 26 Nov 2026 14:05:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(protect):=20=E7=9A=AE=E8=82=A4=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=8E=BB=E6=8E=89=E3=80=8C64=20=E4=BD=8D=E3=80=8D?= =?UTF-8?q?=E8=A7=92=E6=A0=87=EF=BC=8C=E7=BB=9F=E4=B8=80=E6=A0=87=2032/64?= =?UTF-8?q?=20=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一提交让 32 位也能用 DuiLib 皮肤,但前端卡片角标还写着「64 位」 (themeBits 对非 classic 皮肤固定返回 themeBits64),选的皮肤和标的位宽对不上。 themeBits 改为所有皮肤统一返回「32/64 位」,并更新两处过时注释。 --- frontend/src/pages/admin/protect/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/admin/protect/index.vue b/frontend/src/pages/admin/protect/index.vue index b268605..abc319b 100644 --- a/frontend/src/pages/admin/protect/index.vue +++ b/frontend/src/pages/admin/protect/index.vue @@ -86,7 +86,7 @@ const themeOptions = computed(() => [ { value: 'card', label: t('admin.protect.themeCard') }, { value: 'terminal', label: t('admin.protect.themeTerminal') }, ]) -// DuiLib 壳目前只有 64 位构建;32 位程序产物会回落到 classic 壳(服务端处理) +// DuiLib 壳 x64 / x86 各有一份构建,两边的皮肤完全一致(assets/shell64_dui.bin、shell32_dui.bin) // 皮肤名形如「深色 · 卡密登录」:卡片上标题取前半,副标题取后半 function themeTitle(label: string) { return label.split('·')[0].trim() @@ -95,7 +95,7 @@ function themeSub(label: string) { const parts = label.split('·') return parts.length > 1 ? parts.slice(1).join('·').trim() : '' } -// 位宽提示:经典壳 32/64 位都有产物,DuiLib 那几套只有 64 位构建 +// 位宽提示:所有皮肤都同时提供 32/64 位产物,卡片统一标「32/64 位」 // 点卡片角上的放大镜看大图 const previewTheme = ref<{ value: string, label: string } | null>(null) const previewOpen = ref(false) @@ -103,8 +103,9 @@ function openThemePreview(theme: { value: string, label: string }) { previewTheme.value = theme previewOpen.value = true } -function themeBits(theme: string) { - return theme === 'classic' ? t('admin.protect.themeBits32') : t('admin.protect.themeBits64') +function themeBits(_theme: string) { + // 每套皮肤都同时出 32/64 位 payload,不再有「只有 64 位」的那一档 + return t('admin.protect.themeBits32') } const themeDisabled = computed(() => false)