feat: 首頁介紹
This commit is contained in:
@@ -274,6 +274,8 @@
|
||||
/>
|
||||
</template>
|
||||
|
||||
<PlatformIntroduction />
|
||||
|
||||
<v-dialog v-model="generateDialog" max-width="400">
|
||||
<v-card class="rounded-xl overflow-hidden">
|
||||
<v-card-title class="bg-primary text-white font-weight-bold py-3">
|
||||
@@ -404,6 +406,7 @@ import BrandAvatar from "@/components/BrandAvatar.vue";
|
||||
import HealthRadarChart from "@/components/HealthRadarChart.vue";
|
||||
import Layout from "@/components/layout/DefaultLayout.vue";
|
||||
import ModuleRouterCard from "@/components/ModuleRouterCard.vue";
|
||||
import PlatformIntroduction from "@/components/PlatformIntroduction.vue";
|
||||
import PhysicalFitnessSummary from "@/components/PhysicalFitnessSummary.vue";
|
||||
import { useDisplayUserName } from "@/composables/useDisplayUserName";
|
||||
import {
|
||||
@@ -428,7 +431,6 @@ const physicalFitnessItems = ref<PhysicalFitnessItem[]>([]);
|
||||
const physicalFitnessReceivedAt = ref<string | null>(null);
|
||||
const physicalFitnessLoading = ref(false);
|
||||
const physicalFitnessError = ref("");
|
||||
const redirectingToLogin = ref(false);
|
||||
|
||||
const displayUserName = useDisplayUserName(store.userProfile);
|
||||
|
||||
@@ -498,11 +500,6 @@ function getRequiredUserID(): string | null {
|
||||
return userID;
|
||||
}
|
||||
|
||||
if (!redirectingToLogin.value) {
|
||||
redirectingToLogin.value = true;
|
||||
void router.replace({ name: "login", query: { redirect: "/" } });
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user