Skip to content

Commit 47ac63e

Browse files
committed
improvement(app-shell): 优化侧边栏显示规则
- 首页与解密流程相关页面隐藏侧边栏,Wrapped 路由判断更完整
1 parent 616778b commit 47ac63e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/app.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ const contentClass = computed(() =>
5757
: 'flex-1 overflow-auto min-h-0'
5858
)
5959
60-
const showSidebar = computed(() => !String(route.path || '').startsWith('/wrapped'))
60+
const showSidebar = computed(() => {
61+
const path = String(route.path || '')
62+
if (path === '/') return false
63+
if (path === '/decrypt' || path === '/detection-result' || path === '/decrypt-result') return false
64+
return !(path === '/wrapped' || path.startsWith('/wrapped/'))
65+
})
6166
</script>
6267
6368
<style>

0 commit comments

Comments
 (0)