修改管理系统router
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user