feat(admin): 恢复原生登录与业务路由并移除预览顶栏

This commit is contained in:
2026-12-01 18:06:31 +08:00
parent 9fe3bd9bb2
commit 6ca42f5312
17 changed files with 400 additions and 46 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ const artDefaults = {
function initialAppearance() {
const root = document.documentElement
const preview = root.dataset.adminUi === 'v2'
const mode: AdminUi = preview || cache.get(APPEARANCE_KEY) === 'v2' ? 'v2' : 'legacy'
const stored = cache.get(APPEARANCE_KEY)
const mode: AdminUi = preview || stored === 'v2' || (stored !== 'legacy' && root.dataset.defaultAdminUi === 'v2') ? 'v2' : 'legacy'
root.dataset.adminUi = mode
return { preview, mode }
}