befly-vite 1.5.4 → 1.5.6

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/index.browser.js CHANGED
@@ -118,7 +118,7 @@ export function Layouts(routes, rootRedirectPath, resolveLayoutComponent) {
118
118
  };
119
119
  });
120
120
 
121
- if (trimmedRootRedirectPath) {
121
+ if (trimmedRootRedirectPath && trimmedRootRedirectPath !== "/") {
122
122
  return [
123
123
  {
124
124
  path: "/",
package/index.js CHANGED
@@ -190,7 +190,7 @@ export function scanViews(appRoot = process.cwd()) {
190
190
  if (existsSync(appViewsPath)) {
191
191
  routesFolders.push({
192
192
  src: realpathSync(appViewsPath),
193
- path: "app/",
193
+ path: "",
194
194
  exclude: ["**/components/**"]
195
195
  });
196
196
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-vite",
3
- "version": "1.5.4",
4
- "gitHead": "9ba9ec41fd885cc7cc9506a3ea31f0c5466868a7",
3
+ "version": "1.5.6",
4
+ "gitHead": "0c77cc1b9712d6b8e7c2fc6168850454207f1825",
5
5
  "private": false,
6
6
  "description": "Befly Vite 配置预设和插件集合",
7
7
  "keywords": [