fix
This commit is contained in:
@@ -21,7 +21,8 @@ const routes: Array<RouteRecordRaw> = [
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
meta:{enter:'all',},
|
||||
component: _import('LoginPage')
|
||||
component: _import('Login')
|
||||
// component: _import('LoginPage')
|
||||
},{
|
||||
path: '/schoolLogin',
|
||||
name: 'schoolLogin',
|
||||
@@ -45,22 +46,12 @@ const routes: Array<RouteRecordRaw> = [
|
||||
meta:{enter:'all',},
|
||||
component: _import('Register')
|
||||
},
|
||||
// {
|
||||
// path: '/register',
|
||||
// name: 'register',
|
||||
// component: _import('RegisterPage')
|
||||
// },
|
||||
{
|
||||
path: '/upgrade',
|
||||
name: 'upgrade',
|
||||
meta:{enter:'all',},
|
||||
component: _import('Upgrade'),
|
||||
},
|
||||
// {
|
||||
// path: '/home',
|
||||
// name: 'home',
|
||||
// component: _import('HomeView')
|
||||
// },
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
@@ -146,47 +137,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
name: "HomeRecommend",
|
||||
meta:{enter:'all',},
|
||||
component: _import('HomeRecommend'),
|
||||
children:[
|
||||
{
|
||||
path: "",
|
||||
name:'SquareChil',
|
||||
meta:{enter:'all',},
|
||||
redirect: "/Square/works"
|
||||
},
|
||||
{
|
||||
path:'works',
|
||||
name:'SquareWorks',
|
||||
meta:{enter:'all',},
|
||||
component: _import_custom('HomeView/Works.vue'),
|
||||
},{
|
||||
path:'events',
|
||||
name:'SquareEvents',
|
||||
meta:{enter:'all',},
|
||||
component: _import_custom('HomeView/Events.vue'),
|
||||
|
||||
},{
|
||||
path:'eventsDetail',
|
||||
name:'SquareEventsDetail',
|
||||
meta:{enter:'all',},
|
||||
component: _import_component('Events/eventsDetail.vue'),
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/demo',
|
||||
name: 'demo',
|
||||
component: _import('Demo')
|
||||
},
|
||||
// {
|
||||
// path: '/history',
|
||||
// name: 'history',
|
||||
// component: _import('history')
|
||||
// },
|
||||
// {
|
||||
// path: '/testClickData',
|
||||
// name: 'testClickData',
|
||||
// component: _import('TestClickData')
|
||||
// },
|
||||
{
|
||||
path: '/administrator',
|
||||
name: 'administrator',
|
||||
@@ -292,17 +243,6 @@ const routes: Array<RouteRecordRaw> = [
|
||||
meta:{enter:3,},
|
||||
component: _import_component('Administrator/SE/getGenerateFrequency/index.vue'),
|
||||
},
|
||||
// {
|
||||
// path:'allUserSE',
|
||||
// name:'allUserSE',
|
||||
// meta:{enter:3,},
|
||||
// component: _import_component('Administrator/SE/allUser.vue'),
|
||||
// },{
|
||||
// path:'allUserSE',
|
||||
// name:'allUserSE',
|
||||
// meta:{enter:3,},
|
||||
// component: _import_component('Administrator/SE/allUser.vue'),
|
||||
// },
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -338,16 +278,6 @@ const routes: Array<RouteRecordRaw> = [
|
||||
},
|
||||
component: _import('affiliate/affiliateRegister'),
|
||||
},
|
||||
// {
|
||||
// path: '/library',
|
||||
// name: 'library',
|
||||
// component: _import('library')
|
||||
// },
|
||||
// {
|
||||
// path: '/trialApproval',
|
||||
// name: 'trialApproval',
|
||||
// component: _import('trialApproval')
|
||||
// },
|
||||
{
|
||||
path: '/setIdentification',
|
||||
name: 'setIdentification',
|
||||
@@ -464,7 +394,6 @@ router.beforeEach((to:any, from, next) => {
|
||||
// }
|
||||
// }
|
||||
// return
|
||||
// 检查路由是否存在
|
||||
// 机房用户
|
||||
let herfData = window.location.search.substring(1)
|
||||
if(herfData.split('=')[0] == 'noLogin' && to.name != 'homePage'){
|
||||
|
||||
Reference in New Issue
Block a user