hookehuyr

refactor(router): 更新首页标题为"美乐爱觉"

style(App): 简化加载动画的模板结构
```

这个提交消息简洁地描述了所做的更改,并遵循了提交消息的格式和指南。第一个更改是更新了路由配置中的首页标题,第二个更改是简化了加载动画的模板结构。
......@@ -24,28 +24,16 @@ provideCart();
</script>
<template>
<router-view>
<template v-slot="{ Component }">
<Suspense>
<template #default>
<div>
<component :is="Component" />
</div>
</template>
<template #fallback>
<div
class="flex items-center justify-center h-screen bg-gradient-to-br from-green-50 via-teal-50 to-blue-50"
>
<div class="bg-white/20 backdrop-blur-md rounded-xl p-6 shadow-lg">
<div
class="animate-spin rounded-full h-12 w-12 border-b-2 border-green-500 mx-auto"
></div>
<p class="mt-4 text-gray-700">加载中...</p>
</div>
</div>
</template>
</Suspense>
</template>
<router-view v-slot="{ Component }">
<div v-if="Component">
<component :is="Component" />
</div>
<div v-else class="flex items-center justify-center h-screen bg-gradient-to-br from-green-50 via-teal-50 to-blue-50">
<div class="bg-white/20 backdrop-blur-md rounded-xl p-6 shadow-lg">
<div class="animate-spin rounded-full h-12 w-12 border-b-2 border-green-500 mx-auto"></div>
<p class="mt-4 text-gray-700">加载中...</p>
</div>
</div>
</router-view>
</template>
......
/*
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-21 14:38:09
* @LastEditTime: 2025-03-21 15:45:42
* @FilePath: /mlaj/src/router/index.js
* @Description: 文件描述
*/
......@@ -13,7 +13,7 @@ const routes = [
path: '/',
name: 'HomePage',
component: () => import('../views/HomePage.vue'),
meta: { title: '首页' },
meta: { title: '美乐爱觉' },
},
{
path: '/courses',
......