vue大屏, 免登录显示数据
- router.config.js
{
path: '/queueScreen',
name: 'queueScreen',
component: () => import(/* webpackChunkName: "user" */ '@/views/customstg/QueueScreen')
},
{
path: '/billScreen',
name: 'billScreen',
component: () => import(/* webpackChunkName: "user" */ '@/views/customstg/BillScreen')
},
- 白名单permission.js
const whiteList = ['/billScreen',
ps, 注意斜杠
- 最后在index.js中使用路由策略信息
import { constantRouterMap } from '@/config/router.config'
转载自:https://segmentfault.com/a/1190000042231848