Browse Source

移除多余白名单路由

master
李磊 3 years ago
parent
commit
7cd2452c14
  1. 2
      src/permission.js
  2. 37
      src/router/index.js

2
src/permission.js

@ -3,7 +3,7 @@ import store from './store'
import NProgress from 'nprogress' // Progress 进度条
import 'nprogress/nprogress.css'// Progress 进度条样式
import { getToken } from '@/utils/auth' // 验权
const whiteList = ['/login', '/remote', '/404', '/viewhzd', '/upload', '/xingshi', '/wenjian', '/fangwei', '/qiye'] // 不重定向白名单
const whiteList = ['/login', '/remote', '/404', '/fangwei'] // 不重定向白名单
router.beforeEach((to, from, next) => {
NProgress.start()
if (getToken()) {

37
src/router/index.js

@ -37,37 +37,6 @@ export const constantRouterMap = [{
import ('@/views/bjd/view_hzd'),
hidden: true
},
{
path: '/wenjian/:zlzl/:sbzl/:bjid',
component: () =>
import ('@/views/bjd/sjse/upload_list_20200721'),
hidden: true
},
{
path: '/wenjian/:zlzl/:sbzl/:bjid/:bjparamid',
component: () =>
import ('@/views/bjd/sjse/upload_list_20200721'),
hidden: true
},
{
path: '/upload/:sbzl/:bjid',
component: () =>
import ('@/views/bjd/sjse/upload_list'),
hidden: true
},
{
path: '/upload/:sbzl/:bjid/:bjparamid',
component: () =>
import ('@/views/bjd/sjse/upload_list_param'),
hidden: true
},
{
path: '/xingshi/:sbzl/:bjid',
component: () =>
import ('@/views/bjd/sjse/upload_list_xingshi'),
hidden: true
},
{
path: '/showGrantInfo',
component: () =>
@ -80,12 +49,6 @@ export const constantRouterMap = [{
import ('@/views/security/index'),
hidden: true
},
{
path: '/qiye/:qyid',
component: () =>
import ('@/views/task/qiye_list'),
hidden: true
},
{
path: '/flow/detail',
component: () =>

Loading…
Cancel
Save