mooho-base-admin-plus 2.0.34 → 2.0.35
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/mooho-base-admin-plus.min.esm.js +859 -2346
- package/package/mooho-base-admin-plus.min.js +51 -47
- package/package.json +1 -1
- package/src/index.js +5 -5
- package/vite.config.js +1 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -160,11 +160,7 @@ Object.keys(files).forEach(key => {
|
|
|
160
160
|
pages[key.replace(/(\.\/pages\/)/g, '')] = files[key].default;
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
const created = async (app, routes) => {
|
|
164
|
-
Object.keys(files).forEach(key => {
|
|
165
|
-
pages[key.replace(/(\.\/pages\/)/g, '')] = files[key].default;
|
|
166
|
-
});
|
|
167
|
-
|
|
163
|
+
const created = async (app, routes, files) => {
|
|
168
164
|
app.use(API);
|
|
169
165
|
|
|
170
166
|
if (window) {
|
|
@@ -175,6 +171,10 @@ const created = async (app, routes) => {
|
|
|
175
171
|
window.$app.$Notice = app.config.globalProperties.$Notice;
|
|
176
172
|
}
|
|
177
173
|
|
|
174
|
+
Object.keys(files).forEach(key => {
|
|
175
|
+
pages[key.replace(/(\.\/pages\/)/g, '')] = files[key].default;
|
|
176
|
+
});
|
|
177
|
+
|
|
178
178
|
// 初始化路由
|
|
179
179
|
initRouter(pages, routes);
|
|
180
180
|
// 加载多语言
|
package/vite.config.js
CHANGED