xiaoxian521 3 rokov pred
rodič
commit
63640a0950

+ 2 - 0
src/components/ReIcon/src/iconifyIconOffline.ts

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

+ 2 - 0
src/router/index.ts

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

+ 1 - 1
src/router/modules/able.ts

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

+ 1 - 1
src/router/modules/components.ts

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

+ 1 - 5
src/router/modules/editor.ts

@@ -19,11 +19,7 @@ const editorRouter = {
       meta: {
         title: $t("menus.hseditor"),
         i18n: true,
-        keepAlive: true,
-        extraIcon: {
-          svg: true,
-          name: "team-iconxinpin"
-        }
+        keepAlive: true
       }
     }
   ]

+ 31 - 0
src/router/modules/ppt.ts

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