You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
792 B
23 lines
792 B
<template>
|
|
<!-- Homepage for logged-in users -->
|
|
<div class="flex flex-col gap-4 items-center">
|
|
<SystemAnnouncementCardList />
|
|
|
|
<PageCardList class="grid gap-4 grid-cols-1" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { useRouter } from 'vue-router';
|
|
import PageCardList from "../components/page/PageCardList";
|
|
import SystemAnnouncementCardList from "../components/systemannouncement/SystemAnnouncementCardList";
|
|
import { usePlatformConfig } from "../store/platformConfig";
|
|
|
|
const router = useRouter();
|
|
const platformConfigStore = usePlatformConfig();
|
|
|
|
const redirectValue = platformConfigStore.getSetting("platform.redirect_index_to_url_for_logged_users");
|
|
if (typeof redirectValue === 'string' && redirectValue.trim() !== '') {
|
|
router.push(`/${redirectValue}`);
|
|
}
|
|
</script>
|
|
|