improvement(app-shell): 优化侧边栏显示规则

- 首页与解密流程相关页面隐藏侧边栏,Wrapped 路由判断更完整
This commit is contained in:
2977094657
2026-02-13 22:41:02 +08:00
parent 7a0c39e39d
commit 03f27a30ee

View File

@@ -57,7 +57,12 @@ const contentClass = computed(() =>
: 'flex-1 overflow-auto min-h-0'
)
const showSidebar = computed(() => !String(route.path || '').startsWith('/wrapped'))
const showSidebar = computed(() => {
const path = String(route.path || '')
if (path === '/') return false
if (path === '/decrypt' || path === '/detection-result' || path === '/decrypt-result') return false
return !(path === '/wrapped' || path.startsWith('/wrapped/'))
})
</script>
<style>