feat: show publish action for tenant admins

This commit is contained in:
2025-12-25 15:05:05 +08:00
parent 4bf23e1f4a
commit 83ff116ea5
3 changed files with 53 additions and 3 deletions

View File

@@ -125,6 +125,14 @@ onMounted(async () => {
if (!isLoggedIn.value) {
const redirect = typeof route.fullPath === 'string' ? route.fullPath : '/management/contents/new';
await router.push(`/auth/login?redirect=${encodeURIComponent(redirect)}`);
return;
}
if (!String(tenantCode.value || '').trim()) {
const q = route.query?.tenantCode;
if (typeof q === 'string' && q.trim()) {
tenantCode.value = q.trim();
}
}
});
</script>