feat: Scaffold new Nuxt.js application with initial pages, layouts, composables, and middleware.

This commit is contained in:
supalerk-ar66 2026-01-23 09:54:35 +07:00
parent ab3124628c
commit 9bfb852ad0
8 changed files with 113 additions and 48 deletions

View file

@ -1,6 +1,9 @@
<script setup>
// Authentication
const { fetchUserProfile, isAuthenticated } = useAuth()
// App (Mounted)
// Login ( Token) Profile
onMounted(() => {
if (isAuthenticated.value) {
fetchUserProfile()
@ -9,8 +12,12 @@ onMounted(() => {
</script>
<template>
<!-- แสดง Loader ระหวางเปลยนหน หรอโหลดขอม -->
<GlobalLoader />
<!-- NuxtLayout: แสดง Layout กำหนดในแตละเพจ (default: layouts/default.vue) -->
<NuxtLayout>
<!-- NuxtPage: แสดงเนอหาของเพจปจจ (ตาม URL routng) -->
<NuxtPage />
</NuxtLayout>
</template>