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.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.0.34",
4
+ "version": "2.0.35",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
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
@@ -68,8 +68,7 @@ const lib = defineConfig({
68
68
  },
69
69
  resolve: {
70
70
  alias: {
71
- '@': resolve(__dirname, '.', 'src'),
72
- 'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js'
71
+ '@': resolve(__dirname, '.', 'src')
73
72
  }
74
73
  // extensions: ['.js', '.json', '.vue']
75
74
  }