mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
feat: add ppt demo
This commit is contained in:
parent
a80c6f034a
commit
63640a0950
@ -85,6 +85,7 @@ import Card from "@iconify-icons/ri/bank-card-line";
|
||||
import Reset from "@iconify-icons/ri/restart-line";
|
||||
import Dept from "@iconify-icons/ri/git-branch-line";
|
||||
import Password from "@iconify-icons/ri/lock-password-line";
|
||||
import Ppt from "@iconify-icons/ri/file-ppt-2-line";
|
||||
addIcon("arrow-right-s-line", ArrowRightSLine);
|
||||
addIcon("arrow-left-s-line", ArrowLeftSLine);
|
||||
addIcon("logout-circle-r-line", LogoutCircleRLine);
|
||||
@ -106,6 +107,7 @@ addIcon("card", Card);
|
||||
addIcon("reset", Reset);
|
||||
addIcon("dept", Dept);
|
||||
addIcon("password", Password);
|
||||
addIcon("ppt", Ppt);
|
||||
|
||||
// Font Awesome 4
|
||||
import FaUser from "@iconify-icons/fa/user";
|
||||
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user