<template>
  <LandingPage v-if="page === 'home'" />
  <SignInPage v-else-if="page === 'sign-in'" />
  <ForbiddenPage v-else-if="page === 'forbidden'" />
  <NotFoundPage v-else-if="page === 'not-found'" />
  <AuthStatusPage v-else-if="page === 'auth-status'" />
  <LandingPage v-else />
</template>

<script setup lang="ts">
import { computed } from "vue";
import AuthStatusPage from "./components/AuthStatusPage.vue";
import ForbiddenPage from "./components/ForbiddenPage.vue";
import LandingPage from "./components/LandingPage.vue";
import NotFoundPage from "./components/NotFoundPage.vue";
import SignInPage from "./components/SignInPage.vue";
import { PageContext } from "../services/PageContext";

const context = PageContext.read();
const page = computed(() => context.pageName ?? "home");
</script>
评论加载中...