cloud-web-corejs 1.0.54-dev.763 → 1.0.54-dev.765
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 +1 -1
- package/src/index.js +0 -1
- package/src/layout/components/AppMain.vue +1 -2
- package/src/microRouter/index.js +393 -521
- package/src/store/modules/micro.js +2 -6
- package/src/store/modules/permission.js +2 -2
- package/src/utils/menuAdapter.js +140 -29
- package/src/views/bd/setting/logic_param/edit.vue +20 -20
- package/src/views/user/menuFallback/index.vue +3 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -268,7 +268,6 @@ export async function mount(props = {}) {
|
|
|
268
268
|
// 非数组(null/未传)= 自治嵌入模式:子应用自拉菜单、保留自身壳(micro store 据此置 selfManaged)
|
|
269
269
|
menus: Array.isArray(props.menus) ? props.menus : null,
|
|
270
270
|
mainAdapter: props.mainAdapter || null,
|
|
271
|
-
lang: props.lang || "",
|
|
272
271
|
// 主应用经本地调试覆盖装载:允许 URL 直达未配菜单的页面
|
|
273
272
|
debug: !!props.microDebug,
|
|
274
273
|
});
|
|
@@ -84,10 +84,9 @@ export default {
|
|
|
84
84
|
// handler 存实例属性并在销毁时 $off:事件总线是应用级单例,
|
|
85
85
|
// 不解绑会在登出重建布局后累积 handler 并钉住旧实例(内存泄露)
|
|
86
86
|
this.reflushRouteViewHandler = (view) => {
|
|
87
|
-
let meta = this.$route.meta || {};
|
|
88
87
|
// 子应用页面不在本 router-view 内(由 qiankun 挂独立容器),
|
|
89
88
|
// 走本地 /redirect 重建只会隐藏再显示容器、实例不变,须转发给子应用自己重建
|
|
90
|
-
if (
|
|
89
|
+
if (refreshMicroApp(this.$route)) {
|
|
91
90
|
return;
|
|
92
91
|
}
|
|
93
92
|
if(this.$route.name=="outLink"){
|