feat: show publish action for tenant admins
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user