fix(protect): 皮肤卡片去掉「64 位」角标,统一标 32/64 位
上一提交让 32 位也能用 DuiLib 皮肤,但前端卡片角标还写着「64 位」 (themeBits 对非 classic 皮肤固定返回 themeBits64),选的皮肤和标的位宽对不上。 themeBits 改为所有皮肤统一返回「32/64 位」,并更新两处过时注释。
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user