befly-admin 3.6.16 → 3.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-admin",
3
- "version": "3.6.16",
4
- "gitHead": "f5d17c019a58e82cfacec5ce3a1f04e3225ba838",
3
+ "version": "3.6.17",
4
+ "gitHead": "f6a260445b4fb58a43a7537c62f1f3b2463f0ff5",
5
5
  "private": false,
6
6
  "description": "Befly Admin - 基于 Vue3 + TDesign Vue Next 的后台管理系统",
7
7
  "files": [
@@ -32,7 +32,7 @@
32
32
  "@iconify-json/lucide": "^1.2.82",
33
33
  "axios": "^1.13.2",
34
34
  "befly-shared": "^1.3.9",
35
- "befly-vite": "^1.2.11",
35
+ "befly-vite": "^1.2.12",
36
36
  "esbuild": "^0.25.0",
37
37
  "pinia": "^3.0.4",
38
38
  "tdesign-vue-next": "^1.17.7",
@@ -3,8 +3,8 @@ import { Layouts } from "befly-vite";
3
3
  import { createRouter, createWebHashHistory } from "vue-router";
4
4
  import { routes } from "vue-router/auto-routes";
5
5
 
6
- // 应用自定义布局系统
7
- const layoutRoutes = Layouts(routes, (layoutName) => {
6
+ // 应用自定义布局系统(同时可选注入根路径重定向)
7
+ const finalRoutes = Layouts(routes, $Config.homePath, (layoutName) => {
8
8
  if (layoutName === "default") {
9
9
  return () => import("@/layouts/default.vue");
10
10
  }
@@ -12,14 +12,6 @@ const layoutRoutes = Layouts(routes, (layoutName) => {
12
12
  return () => import(`@/layouts/${layoutName}.vue`);
13
13
  });
14
14
 
15
- // 添加根路径重定向
16
- const finalRoutes = [
17
- {
18
- path: "/",
19
- redirect: $Config.homePath
20
- }
21
- ].concat(layoutRoutes);
22
-
23
15
  /**
24
16
  * 创建并导出路由实例
25
17
  * 可直接在 main.js 中使用 app.use(router)