mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
feat: add ppt demo
This commit is contained in:
@@ -28,6 +28,7 @@ import {
|
||||
formatFlatteningRoutes
|
||||
} from "./utils";
|
||||
|
||||
import pptRouter from "./modules/ppt";
|
||||
import homeRouter from "./modules/home";
|
||||
import ableRouter from "./modules/able";
|
||||
import listRouter from "./modules/list";
|
||||
@@ -43,6 +44,7 @@ import componentsRouter from "./modules/components";
|
||||
|
||||
// 原始静态路由(未做任何处理)
|
||||
const routes = [
|
||||
pptRouter,
|
||||
homeRouter,
|
||||
ableRouter,
|
||||
listRouter,
|
||||
|
||||
@@ -9,7 +9,7 @@ const ableRouter = {
|
||||
icon: "ubuntu-fill",
|
||||
title: $t("menus.hsAble"),
|
||||
i18n: true,
|
||||
rank: 3
|
||||
rank: 4
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ const componentsRouter = {
|
||||
icon: "menu",
|
||||
title: $t("menus.hscomponents"),
|
||||
i18n: true,
|
||||
rank: 4
|
||||
rank: 5
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -19,11 +19,7 @@ const editorRouter = {
|
||||
meta: {
|
||||
title: $t("menus.hseditor"),
|
||||
i18n: true,
|
||||
keepAlive: true,
|
||||
extraIcon: {
|
||||
svg: true,
|
||||
name: "team-iconxinpin"
|
||||
}
|
||||
keepAlive: true
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
31
src/router/modules/ppt.ts
Normal file
31
src/router/modules/ppt.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
const Layout = () => import("/@/layout/index.vue");
|
||||
const IFrame = () => import("/@/layout/frameView.vue");
|
||||
|
||||
const pptRouter = {
|
||||
path: "/ppt",
|
||||
component: Layout,
|
||||
meta: {
|
||||
icon: "ppt",
|
||||
title: "PPT",
|
||||
i18n: false,
|
||||
rank: 3
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/ppt/index",
|
||||
name: "reFrameppt",
|
||||
component: IFrame,
|
||||
meta: {
|
||||
title: "PPT",
|
||||
i18n: false,
|
||||
frameSrc: "https://pipipi-pikachu.github.io/PPTist/",
|
||||
extraIcon: {
|
||||
svg: true,
|
||||
name: "team-iconxinpin"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default pptRouter;
|
||||
Reference in New Issue
Block a user