From bdaad851b88d642ea02ff0b56077574d89188331 Mon Sep 17 00:00:00 2001 From: WANGFan <15871339963@163.com> Date: Sat, 26 Jul 2025 14:04:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=9E=81=E7=AE=80?= =?UTF-8?q?=E7=89=88=E6=BC=94=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++-- src/components.d.ts | 1 - src/mock/_data/system_menu.ts | 64 +++++++++++++++++------------------ src/router/index.ts | 3 +- 4 files changed, 39 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 8704bc6..eea9d22 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,10 @@ SnowAdmin 是一个清新优雅、高颜值且功能强大的后台管理模板 | GitHub | [Github 仓库](https://github.com/WANG-Fan0912/SnowAdmin) | | Gitee | [Gitee 仓库](https://gitee.com/wang_fan_w/SnowAdmin) | +> 完整版分支:main +> +> 极简版分支:main-thin +> > ⚠️主要的维护在github上,提issue/pr请认准github主战场 > > 大家也可以进wx群交流,二维码在介绍末尾 @@ -221,8 +225,8 @@ SnowAdmin ### 学习 & 交流 -| SnowAdmin 交流群 | -| :------------------------------------------------: | +| SnowAdmin 交流群 | +| :------------------------------------------------: | | ![snow](https://ooo.0x0.ooo/2025/07/20/OYt7m6.png) | 使用过程中有各种问题也可以进群交流,欢迎大家积极参与 diff --git a/src/components.d.ts b/src/components.d.ts index b7e742c..2a488a7 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -7,7 +7,6 @@ export {} declare module "vue" { export interface GlobalComponents { - copy: (typeof import("./components/s-layout-search/index copy.vue"))["default"]; "Index copy": (typeof import("./components/s-layout-search/index copy.vue"))["default"]; RouterLink: (typeof import("vue-router"))["RouterLink"]; RouterView: (typeof import("vue-router"))["RouterView"]; diff --git a/src/mock/_data/system_menu.ts b/src/mock/_data/system_menu.ts index fea46bc..a955b0e 100644 --- a/src/mock/_data/system_menu.ts +++ b/src/mock/_data/system_menu.ts @@ -68,29 +68,6 @@ export const systemMenu = [ }, children: null // 存储子节点字段,默认为null }, - { - id: "21", - parentId: "0", - path: "/thin-preview", - name: "thin-preview", - component: "thin-preview/thin-preview", - meta: { - title: "thin-preview", - hide: false, - disable: false, - keepAlive: false, - affix: true, - link: "", - iframe: false, - isFull: true, - roles: ["admin"], - svgIcon: "propaganda", - icon: "", - sort: 2, - type: 2 - }, - children: null - }, { id: "02", parentId: "0", @@ -1476,6 +1453,28 @@ export const systemMenu = [ }, children: null }, + { + id: "140104", + parentId: "1401", + path: "/link/internal/gaodemap", + name: "gaodemap", + component: "link/internal/internal", + meta: { + title: "amap", + hide: false, + keepAlive: true, + disable: false, + affix: false, + link: "http://115.190.79.132:82/", // 链接 + iframe: true, // 区分是否内链 true内链 false外链 + isFull: false, + roles: ["admin"], + icon: "icon-menu", + sort: 4, + type: 2 + }, + children: null + }, { id: "1402", parentId: "14", @@ -1699,20 +1698,21 @@ export const systemMenu = [ { id: "16", parentId: "0", - path: "/gaodemap", - name: "gaodemap", - component: "link/internal/internal", + path: "/SnowAdmin-Thin", + name: "thin-preview", + component: "link/external/external", meta: { - title: "amap", + title: "thin-preview", hide: false, - keepAlive: true, disable: false, - affix: false, - link: "http://115.190.79.132:82/", // 链接 - iframe: true, // 区分是否内链 true内链 false外链 + keepAlive: false, + affix: true, + link: "http://115.190.79.132:83/#/login", + iframe: false, isFull: false, roles: ["admin"], - svgIcon: "amap", + svgIcon: "propaganda", + icon: "", sort: 16, type: 2 }, diff --git a/src/router/index.ts b/src/router/index.ts index 30a554b..9f4966d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,7 +7,6 @@ import { storeToRefs } from "pinia"; import { useUserInfoStore } from "@/store/modules/user-info"; import { useRouteConfigStore } from "@/store/modules/route-config"; import { useRoutingMethod } from "@/hooks/useRoutingMethod"; -import { isEmptyObject } from "@/utils/index"; /** * 创建vue的路由示例 * @method createRouter(options: RouterOptions): Router @@ -40,7 +39,7 @@ router.beforeEach(async (to: any, _: any, next: any) => { NProgress.start(); // 开启进度条 const store = useUserInfoStore(pinia); const routeStore = useRouteConfigStore(pinia); - const { token, account } = storeToRefs(store); + const { token } = storeToRefs(store); const { routeTree } = storeToRefs(routeStore); // console.log("去", to, "来自", from); // next()内部加了path等于跳转指定路由会再次触发router.beforeEach,内部无参数等于放行,不会触发router.beforeEach