king
2020-02-28 888095418c902cc94693cba8b45f31bb79cdf818
src/router/index.js
@@ -6,11 +6,13 @@
import asyncLoadComponent from '@/utils/asyncLoadComponent'
const main = asyncLoadComponent(() => import('@/views/main'))
const PrintTemplate = asyncLoadComponent(() => import('@/views/printTemplate'))
const login = asyncLoadComponent(() => import('@/views/login'))
const NotFound = asyncComponent(() => import('@/views/404'))
const routers = [
  {path: '/login', name: 'login', component: login, auth: false},
  {path: '/print/:param', name: 'print', component: PrintTemplate, auth: false},
  {path: '/ssologin/:param', name: 'ssologin', auth: true},
  {path: '/main', name: 'main', component: main, auth: true},
  {path: '/main/:param', name: 'pmain', component: main, auth: true}