添加首页文章页面

This commit is contained in:
2025-10-08 20:00:30 +08:00
parent 3d7240565e
commit 698f27372d
30 changed files with 2149 additions and 667 deletions

View File

@@ -7,6 +7,8 @@ const HomeView = () => import('../views/HomeView.vue')
const AboutView = () => import('../views/AboutView.vue')
const NewsView = () => import('../views/news/NewsView.vue')
const PublishView = () => import('../views/publish/PublishView.vue')
const CommunityView = () => import('../views/community/CommunityView.vue')
const ResourceView = () => import('../views/resource/ResourceView.vue')
// 定义路由规则(现在 RouteRecordRaw 导入正确)
const routes: RouteRecordRaw[] = [
@@ -31,7 +33,7 @@ const routes: RouteRecordRaw[] = [
{
path: '/resource',
name: 'Resource',
component: HomeView,
component: ResourceView,
meta: {
title: '资源案例',
requiresAuth: false
@@ -40,7 +42,7 @@ const routes: RouteRecordRaw[] = [
{
path: '/community',
name: 'Community',
component: HomeView,
component: CommunityView,
meta: {
title: '社区服务',
requiresAuth: false