feat: 新增极简版演示
This commit is contained in:
parent
a48a344347
commit
bdaad851b8
@ -36,6 +36,10 @@ SnowAdmin 是一个清新优雅、高颜值且功能强大的后台管理模板
|
|||||||
| GitHub | [Github 仓库](https://github.com/WANG-Fan0912/SnowAdmin) |
|
| GitHub | [Github 仓库](https://github.com/WANG-Fan0912/SnowAdmin) |
|
||||||
| Gitee | [Gitee 仓库](https://gitee.com/wang_fan_w/SnowAdmin) |
|
| Gitee | [Gitee 仓库](https://gitee.com/wang_fan_w/SnowAdmin) |
|
||||||
|
|
||||||
|
> 完整版分支:main
|
||||||
|
>
|
||||||
|
> 极简版分支:main-thin
|
||||||
|
>
|
||||||
> ⚠️主要的维护在github上,提issue/pr请认准github主战场
|
> ⚠️主要的维护在github上,提issue/pr请认准github主战场
|
||||||
>
|
>
|
||||||
> 大家也可以进wx群交流,二维码在介绍末尾
|
> 大家也可以进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" {
|
declare module "vue" {
|
||||||
export interface GlobalComponents {
|
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"];
|
"Index copy": (typeof import("./components/s-layout-search/index copy.vue"))["default"];
|
||||||
RouterLink: (typeof import("vue-router"))["RouterLink"];
|
RouterLink: (typeof import("vue-router"))["RouterLink"];
|
||||||
RouterView: (typeof import("vue-router"))["RouterView"];
|
RouterView: (typeof import("vue-router"))["RouterView"];
|
||||||
|
|||||||
@ -68,29 +68,6 @@ export const systemMenu = [
|
|||||||
},
|
},
|
||||||
children: null // 存储子节点字段,默认为null
|
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",
|
id: "02",
|
||||||
parentId: "0",
|
parentId: "0",
|
||||||
@ -1476,6 +1453,28 @@ export const systemMenu = [
|
|||||||
},
|
},
|
||||||
children: null
|
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",
|
id: "1402",
|
||||||
parentId: "14",
|
parentId: "14",
|
||||||
@ -1699,20 +1698,21 @@ export const systemMenu = [
|
|||||||
{
|
{
|
||||||
id: "16",
|
id: "16",
|
||||||
parentId: "0",
|
parentId: "0",
|
||||||
path: "/gaodemap",
|
path: "/SnowAdmin-Thin",
|
||||||
name: "gaodemap",
|
name: "thin-preview",
|
||||||
component: "link/internal/internal",
|
component: "link/external/external",
|
||||||
meta: {
|
meta: {
|
||||||
title: "amap",
|
title: "thin-preview",
|
||||||
hide: false,
|
hide: false,
|
||||||
keepAlive: true,
|
|
||||||
disable: false,
|
disable: false,
|
||||||
affix: false,
|
keepAlive: false,
|
||||||
link: "http://115.190.79.132:82/", // 链接
|
affix: true,
|
||||||
iframe: true, // 区分是否内链 true内链 false外链
|
link: "http://115.190.79.132:83/#/login",
|
||||||
|
iframe: false,
|
||||||
isFull: false,
|
isFull: false,
|
||||||
roles: ["admin"],
|
roles: ["admin"],
|
||||||
svgIcon: "amap",
|
svgIcon: "propaganda",
|
||||||
|
icon: "",
|
||||||
sort: 16,
|
sort: 16,
|
||||||
type: 2
|
type: 2
|
||||||
},
|
},
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import { storeToRefs } from "pinia";
|
|||||||
import { useUserInfoStore } from "@/store/modules/user-info";
|
import { useUserInfoStore } from "@/store/modules/user-info";
|
||||||
import { useRouteConfigStore } from "@/store/modules/route-config";
|
import { useRouteConfigStore } from "@/store/modules/route-config";
|
||||||
import { useRoutingMethod } from "@/hooks/useRoutingMethod";
|
import { useRoutingMethod } from "@/hooks/useRoutingMethod";
|
||||||
import { isEmptyObject } from "@/utils/index";
|
|
||||||
/**
|
/**
|
||||||
* 创建vue的路由示例
|
* 创建vue的路由示例
|
||||||
* @method createRouter(options: RouterOptions): Router
|
* @method createRouter(options: RouterOptions): Router
|
||||||
@ -40,7 +39,7 @@ router.beforeEach(async (to: any, _: any, next: any) => {
|
|||||||
NProgress.start(); // 开启进度条
|
NProgress.start(); // 开启进度条
|
||||||
const store = useUserInfoStore(pinia);
|
const store = useUserInfoStore(pinia);
|
||||||
const routeStore = useRouteConfigStore(pinia);
|
const routeStore = useRouteConfigStore(pinia);
|
||||||
const { token, account } = storeToRefs(store);
|
const { token } = storeToRefs(store);
|
||||||
const { routeTree } = storeToRefs(routeStore);
|
const { routeTree } = storeToRefs(routeStore);
|
||||||
// console.log("去", to, "来自", from);
|
// console.log("去", to, "来自", from);
|
||||||
// next()内部加了path等于跳转指定路由会再次触发router.beforeEach,内部无参数等于放行,不会触发router.beforeEach
|
// next()内部加了path等于跳转指定路由会再次触发router.beforeEach,内部无参数等于放行,不会触发router.beforeEach
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user