feat: add ppt demo

This commit is contained in:
xiaoxian521
2022-04-19 11:42:36 +08:00
parent a80c6f034a
commit 63640a0950
6 changed files with 38 additions and 7 deletions

View File

@@ -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,

View File

@@ -9,7 +9,7 @@ const ableRouter = {
icon: "ubuntu-fill",
title: $t("menus.hsAble"),
i18n: true,
rank: 3
rank: 4
},
children: [
{

View File

@@ -9,7 +9,7 @@ const componentsRouter = {
icon: "menu",
title: $t("menus.hscomponents"),
i18n: true,
rank: 4
rank: 5
},
children: [
{

View File

@@ -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
View 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;