@xiaou66/u-web-ui 0.0.7 → 0.0.9

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.
Files changed (2) hide show
  1. package/dist/index.es.js +3 -3
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -154,13 +154,13 @@ var Te = /* @__PURE__ */ S({
154
154
  p.value = o.getRoutes().filter((e) => e.meta).filter((e) => e.path.split("/").length <= 2).filter((e) => e.meta.menu);
155
155
  }
156
156
  function g() {
157
- r.loadRouter ? r.loadRouter() : m();
157
+ r.loadRouter ? p.value = r.loadRouter() : m();
158
158
  }
159
159
  j(() => {
160
- m();
160
+ g();
161
161
  });
162
162
  function v(e) {
163
- o.push(e.path);
163
+ o.push({ name: e.name });
164
164
  }
165
165
  function S(e) {
166
166
  return e.children ? e.children.filter((e) => e.meta?.menu) : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaou66/u-web-ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "web-ui",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",