更新代码

master
sunzehua 2 years ago
parent d3ddf65915
commit 79f2037c6d

@ -80,5 +80,10 @@ export const constantRouterMap = [
{ {
path: '/404', path: '/404',
component: () => import(/* webpackChunkName: "fail" */ '@/views/system/exception/404') component: () => import(/* webpackChunkName: "fail" */ '@/views/system/exception/404')
},
{
path: '/getway',
name: 'getway',
component: () => import('@/views/getway/index')
} }
] ]

@ -10,7 +10,7 @@ import { ACCESS_TOKEN, ALL_APPS_MENU } from '@/store/mutation-types'
import { Modal, notification } from 'ant-design-vue' // NProgress Configuration import { Modal, notification } from 'ant-design-vue' // NProgress Configuration
import { timeFix } from '@/utils/util' /// es/notification import { timeFix } from '@/utils/util' /// es/notification
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
const whiteList = ['login', 'register', 'registerResult'] // no redirect whitelist const whiteList = ['login', 'register', 'registerResult', 'getway'] // no redirect whitelist
// 无默认首页的情况 // 无默认首页的情况
const defaultRoutePath = '/welcome' const defaultRoutePath = '/welcome'
@ -112,6 +112,7 @@ router.beforeEach((to, from, next) => {
} }
} }
} else { } else {
console.log(to.name)
if (whiteList.includes(to.name)) { if (whiteList.includes(to.name)) {
// 在免登录白名单,直接进入 // 在免登录白名单,直接进入
next() next()

@ -35,8 +35,7 @@ const constantRouterComponents = {
TaskLaraRegist: () => import('@/views/main/Taskmanage/TaskLaraRegist'), TaskLaraRegist: () => import('@/views/main/Taskmanage/TaskLaraRegist'),
TaskVgmContrast: () => import('@/views/main/Taskmanage/TaskVgmContrast'), TaskVgmContrast: () => import('@/views/main/Taskmanage/TaskVgmContrast'),
TaskOriginalLost: () => import('@/views/main/Taskmanage/TaskOriginalLost'), TaskOriginalLost: () => import('@/views/main/Taskmanage/TaskOriginalLost'),
TaskChangeShip: () => import('@/views/main/Taskmanage/TaskChangeShip'), TaskChangeShip: () => import('@/views/main/Taskmanage/TaskChangeShip')
Getway: () => import('@/views/getway/index')
} }
// 前端未找到页面路由(固定不用改)、原来为 /404 // 前端未找到页面路由(固定不用改)、原来为 /404
@ -278,13 +277,6 @@ const booking = [
] ]
// 订舱 // 订舱
const bookingNew = [ const bookingNew = [
{
name: 'getway',
path: '/getway',
pid: 0,
id: 10034,
component: 'Getway'
},
{ {
name: 'BookingDetailNew', name: 'BookingDetailNew',
path: '/BookingDetailNew', path: '/BookingDetailNew',

Loading…
Cancel
Save