From f27e9c5d303f5aa9d8591ede6bdeea7f915ee3c8 Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 25 Dec 2025 15:17:21 +0800 Subject: [PATCH] fix: always show publish in topbar --- frontend/portal/src/layout/AppTopbar.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/portal/src/layout/AppTopbar.vue b/frontend/portal/src/layout/AppTopbar.vue index 1904a6d..dc347dd 100644 --- a/frontend/portal/src/layout/AppTopbar.vue +++ b/frontend/portal/src/layout/AppTopbar.vue @@ -44,6 +44,8 @@ const publishTo = computed(() => { return '/management/contents/new'; }); +const canPublish = computed(() => isTenantAdmin.value || isTenantApproved.value); + const userMenuItems = computed(() => [ { label: '个人中心', icon: 'pi pi-user', command: () => router.push('/me') }, { separator: true }, @@ -97,6 +99,10 @@ onMounted(() => {
+ + + 发布 + @@ -118,10 +124,6 @@ onMounted(() => {