mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
fix: router
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// 静态路由
|
||||
import tabsRouter from "./tabs";
|
||||
import homeRouter from "./home";
|
||||
import errorRouter from "./error";
|
||||
import editorRouter from "./editor";
|
||||
@@ -18,7 +17,6 @@ import {
|
||||
|
||||
// 原始静态路由(未做任何处理)
|
||||
const routes = [
|
||||
tabsRouter,
|
||||
homeRouter,
|
||||
errorRouter,
|
||||
nestedRouter,
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
import Layout from "/@/layout/index.vue";
|
||||
|
||||
const tabsRouter = {
|
||||
path: "/tabs",
|
||||
name: "reTabs",
|
||||
component: Layout,
|
||||
redirect: "/tabs/index",
|
||||
meta: {
|
||||
icon: "IF-team-icontabs",
|
||||
title: "message.hstabs",
|
||||
i18n: true,
|
||||
showLink: true,
|
||||
rank: 8
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/tabs/index",
|
||||
name: "reTabs",
|
||||
component: () => import("/@/views/tabs/index.vue"),
|
||||
meta: {
|
||||
title: "message.hstabs",
|
||||
showLink: true,
|
||||
i18n: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/tabs/detail/:id",
|
||||
name: "tabDetail",
|
||||
component: () => import("/@/views/tabs/tabDetail.vue"),
|
||||
meta: {
|
||||
title: "",
|
||||
showLink: false,
|
||||
i18n: false,
|
||||
dynamicLevel: 3,
|
||||
realPath: "/tabs/detail",
|
||||
refreshRedirect: "/tabs/index"
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default tabsRouter;
|
||||
Reference in New Issue
Block a user