likes
comments
collection
share

vue大屏, 免登录显示数据

作者站长头像
站长
· 阅读数 320
  1. 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')
  },
  1. 白名单permission.js

const whiteList = ['/billScreen',

ps, 注意斜杠

  1. 最后在index.js中使用路由策略信息

import { constantRouterMap } from '@/config/router.config'