From ec3a1d8ac8f23fd3d93f2f9c055d3be8416df9c7 Mon Sep 17 00:00:00 2001 From: mayiming <1627832236@qq.com> Date: Mon, 3 Nov 2025 11:30:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=A1=E7=90=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9Frouter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- management/src/router/index.ts | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/management/src/router/index.ts b/management/src/router/index.ts index c8ad7bae..9844e6b4 100644 --- a/management/src/router/index.ts +++ b/management/src/router/index.ts @@ -7,8 +7,6 @@ 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') const BaseOverview = ()=> import('../views/baseoverview/BaseOverView.vue') const DevProjectView = ()=> import('../views/devproject/devprojectView.vue') const MeetingView = ()=> import('../views/meeting/meetingView.vue') @@ -20,6 +18,7 @@ const OnlineCourseView = ()=>import('../views/caseresource/onlinecourse/onlineCo const teachingCaseView = ()=>import('../views/caseresource/teachingcase/teachingCaseView.vue') const videosCaseView = ()=>import('../views/caseresource/videoscase/videosCaseView.vue') const CaseSettingView = ()=>import('../views/caseresource/setting/caseSettingView.vue') +const PersonView = () =>import('../views/person/personView.vue') // 定义路由规则(现在 RouteRecordRaw 导入正确) @@ -42,28 +41,10 @@ const routes: RouteRecordRaw[] = [ requiresAuth: false } }, - { - path: '/resource', - name: 'Resource', - component: ResourceView, - meta: { - title: '资源案例', - requiresAuth: false - } - }, - { - path: '/community', - name: 'Community', - component: CommunityView, - meta: { - title: '社区服务', - requiresAuth: false - } - }, { path: '/person', name: 'Person', - component: HomeView, + component: PersonView, meta: { title: '个人中心', requiresAuth: false