做完基础的跳转后我们就开始写业务界面:
业务界面基础框架代码,改代码一样放在vue中的index.js,如果像多几个框架文件的话可以多创建几个index.js文件登录,登录时筛选:
export const asyncRoutes = [
{
path: "/system",
component: Layout,
redirect: "/system/user",
name: "sysManage",
meta: { title: "模板下载", icon: "sys", roles: ["aaa"] },
children: [
{
path: "user",
name: "user",
component: () => import("@/views/sys1/user"),
meta: { title: "不动产转移模板", icon: "userManage" },
},
{
path: "role",
name: "role",
component: () => import("@/views/sys1/role"),
meta: { title: "不动产证书", icon: "roleManage" },
},
],
},
{
path: "/product",
component: Layout,
redirect: "/product/test1",
name: "product",
m