diff --git a/src/renderer/themes/geeker/assets/json/authMenuList.json b/src/renderer/themes/geeker/assets/json/authMenuList.json
index 4e0f4e2..10059ae 100644
--- a/src/renderer/themes/geeker/assets/json/authMenuList.json
+++ b/src/renderer/themes/geeker/assets/json/authMenuList.json
@@ -24,7 +24,7 @@
"title": "数据大屏",
"isLink": "",
"isHide": false,
- "isFull": true,
+ "isFull": false,
"isAffix": false,
"isKeepAlive": true
}
@@ -1025,7 +1025,73 @@
"isAffix": false,
"isKeepAlive": true
}
- }
+ },
+ {
+ "name": "/function",
+ "path": "/function",
+ "component": "Layout",
+ "redirect": "/Layout",
+ "meta": {
+ "icon": "Menu",
+ "title": "功能演示",
+ "hidden": false,
+ "alwaysShow": false,
+ "params": null
+ },
+ "children": [
+ {
+ "path": "icon-demo",
+ "component": "demo/icons",
+ "name": "IconDemo",
+ "meta": {
+ "title": "Icons",
+ "icon": "Notification",
+ "hidden": false,
+ "keepAlive": true,
+ "alwaysShow": false,
+ "params": null
+ }
+ },
+ {
+ "path": "x/function/websocket",
+ "component": "demo/websocket",
+ "name": "/function/websocket",
+ "meta": {
+ "title": "Websocket",
+ "icon": "Loading",
+ "hidden": false,
+ "keepAlive": true,
+ "alwaysShow": false,
+ "params": null
+ }
+ },
+ {
+ "path": "/sheet/univer",
+ "component": "@themeDefault/views/demo/sheet",
+ "name": "/sheet/univer",
+ "meta": {
+ "title": "univer表格",
+ "icon": "Histogram",
+ "hidden": false,
+ "keepAlive": true,
+ "alwaysShow": false,
+ "params": null
+ }
+ },
+ {
+ "path": "other/:id",
+ "component": "demo/other",
+ "name": "Other/:id",
+ "meta": {
+ "title": "敬请期待...",
+ "icon": "Grid",
+ "hidden": false,
+ "alwaysShow": false,
+ "params": null
+ }
+ }
+ ]
+ }
],
"msg": "成功"
}
diff --git a/src/renderer/themes/geeker/routers/index.ts b/src/renderer/themes/geeker/routers/index.ts
index 40b0d2b..01cc0cb 100644
--- a/src/renderer/themes/geeker/routers/index.ts
+++ b/src/renderer/themes/geeker/routers/index.ts
@@ -1,10 +1,11 @@
-import { createRouter, createWebHashHistory, createWebHistory } from "vue-router";
-import { useUserStore } from "@themeGeeker/stores/modules/user";
-import { useAuthStore } from "@themeGeeker/stores/modules/auth";
-import { LOGIN_URL, ROUTER_WHITE_LIST } from "@themeGeeker/config";
-import { initDynamicRouter } from "@themeGeeker/routers/modules/dynamicRouter";
-import { staticRouter, errorRouter } from "@themeGeeker/routers/modules/staticRouter";
+import {createRouter, createWebHashHistory, createWebHistory} from "vue-router";
+import {useUserStore} from "@themeGeeker/stores/modules/user";
+import {useAuthStore} from "@themeGeeker/stores/modules/auth";
+import {LOGIN_URL, ROUTER_WHITE_LIST} from "@themeGeeker/config";
+import {initDynamicRouter} from "@themeGeeker/routers/modules/dynamicRouter";
+import {errorRouter, staticRouter} from "@themeGeeker/routers/modules/staticRouter";
import NProgress from "@themeGeeker/config/nprogress";
+import Performance from '@/tools/performance'
// const mode = import.meta.env.VITE_ROUTER_MODE;
const mode = process.env.VITE_ROUTER_MODE;
@@ -43,7 +44,7 @@ const router = createRouter({
router.beforeEach(async (to, from, next) => {
const userStore = useUserStore();
const authStore = useAuthStore();
-
+ let end = Performance.startExecute(`${from.path} => ${to.path} 路由耗时`); /// 路由性能监控
// 1.NProgress 开始
NProgress.start();
@@ -75,6 +76,7 @@ router.beforeEach(async (to, from, next) => {
// 8.正常访问页面
next();
+ end();
});
/**
diff --git a/src/renderer/themes/geeker/views/dashboard/dataVisualize/components/curve.vue b/src/renderer/themes/geeker/views/dashboard/dataVisualize/components/curve.vue
index e3590af..220c461 100644
--- a/src/renderer/themes/geeker/views/dashboard/dataVisualize/components/curve.vue
+++ b/src/renderer/themes/geeker/views/dashboard/dataVisualize/components/curve.vue
@@ -5,7 +5,7 @@