feat: 新增极简版演示
This commit is contained in:
parent
a48a344347
commit
bdaad851b8
@ -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 交流群 |
|
||||
| :------------------------------------------------: |
|
||||
|  |
|
||||
|
||||
使用过程中有各种问题也可以进群交流,欢迎大家积极参与
|
||||
|
||||
1
src/components.d.ts
vendored
1
src/components.d.ts
vendored
@ -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"];
|
||||
|
||||
@ -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
|
||||
},
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user