Vue框架管理菜单权限
发布时间
阅读量:
阅读量
src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import store from '../store'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth'
import getPageTitle from '@/utils/get-page-title'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
export const constantRoutes = [ //必有路由,不用设置权限的路由
{
path: '/redirect',
component: Layout,
hidden: true,
children: [
{
path: '/redirect/:path(.*)',
component: () => import('@
全部评论 (0)
还没有任何评论哟~
