mooho-base-admin-plus 0.1.41 → 0.1.42

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": "0.1.41",
4
+ "version": "0.1.42",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.3.97",
7
7
  "license": "MIT",
package/src/index.js CHANGED
@@ -165,6 +165,7 @@ Object.keys(files).forEach(key => {
165
165
  let isFirstRouteChange = true;
166
166
 
167
167
  const created = async () => {
168
+ console.log('1');
168
169
  // 加载设置
169
170
  //await store.dispatch('admin/setting/init');
170
171
  // 初始化动态路由
@@ -184,6 +185,8 @@ const created = async () => {
184
185
  // if (Setting.i18n.remote) loadRemoteLocaleMessages(i18n);
185
186
  };
186
187
 
188
+ console.log('0');
189
+
187
190
  const routeChanged = to => {
188
191
  // 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
189
192
  store.dispatch('admin/menu/setMenuList', to);
@@ -11,6 +11,8 @@ if (!base) {
11
11
  base = '';
12
12
  }
13
13
 
14
+ console.log('base', base);
15
+
14
16
  // 导出路由 在 main.js 里使用
15
17
  const router = createRouter({
16
18
  history: Setting.routerMode === 'history' ? createWebHistory(base) : Setting.routerMode === 'hash' ? createWebHashHistory(base) : createMemoryHistory(base),
@@ -30,6 +32,8 @@ router.beforeEach(async (to, from, next) => {
30
32
  ViewUIPlus.LoadingBar.start();
31
33
  }
32
34
 
35
+ console.log('4');
36
+
33
37
  if (!inited) {
34
38
  // 初始化动态路由
35
39
  let dynamicRoutes = await dynamic.init(router);