vue路由权限和菜单权限
发布时间
阅读量:
阅读量
在路由配置中,index 的值是通过后台传输的数据实现添加操作的。
import Vue from 'vue';
import VueRouter from 'vue-router';
import login from '../views/login';
Vue.use(VueRouter);
const routes = [
{
path: '/login',
name: 'login',
component: login,
meta : {
title : "登录"
}
},
{
path: '/',
name: 'layout',
redirect : "/welcome",
component: () => import('../components/Layout'),
meta : {
title : "首页"
},
children : [
全部评论 (0)
还没有任何评论哟~
