n20-common-lib 2.3.4 → 2.3.5
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
package/src/_qiankun/index.js
CHANGED
|
@@ -8,8 +8,17 @@ const vuePar = {
|
|
|
8
8
|
abstractRouter: undefined
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/***
|
|
12
|
+
* 参数设置
|
|
13
|
+
* @param {Object} options 配置参数
|
|
14
|
+
* @param {Object} options.render render函数
|
|
15
|
+
* @param {Object} options.router 路由实例对象
|
|
16
|
+
* @param {Object} options.store vuex实例对象
|
|
17
|
+
* @param {Object} options.i18n 国际化实例类型
|
|
18
|
+
* @param {Object} options.abstractRouter 抽象路由实例对象,用于传递块级模块路由实例
|
|
19
|
+
*/
|
|
20
|
+
export function setVueParameters(options) {
|
|
21
|
+
Object.assign(vuePar, options)
|
|
13
22
|
}
|
|
14
23
|
|
|
15
24
|
let instance = null
|
|
@@ -63,7 +72,8 @@ async function _mountKeep(props) {
|
|
|
63
72
|
} else {
|
|
64
73
|
delete require.cache[require.resolve('@/router/abstract.js')]
|
|
65
74
|
let res = await import('@/router/abstract.js')
|
|
66
|
-
_router = res.
|
|
75
|
+
_router = res.deimport { options } from './../../bpmn2svg/bpmn2svg.umd';
|
|
76
|
+
fault
|
|
67
77
|
}
|
|
68
78
|
_router.apps.push(...catchRoute_apps)
|
|
69
79
|
|
|
@@ -422,8 +422,8 @@ export default {
|
|
|
422
422
|
logoutA() {
|
|
423
423
|
axios.delete('/bems/prod_1.0/uas/api/authorization/logout').then(() => {
|
|
424
424
|
if (this.afterLogout) {
|
|
425
|
-
let After = this.afterLogout(
|
|
426
|
-
After.then && After.then(auth.removeToken)
|
|
425
|
+
let After = this.afterLogout()
|
|
426
|
+
After.then && After.then(auth.removeToken())
|
|
427
427
|
} else {
|
|
428
428
|
auth.removeToken()
|
|
429
429
|
}
|
|
@@ -521,8 +521,8 @@ export default {
|
|
|
521
521
|
logoutA() {
|
|
522
522
|
axios.delete('/bems/prod_1.0/uas/api/authorization/logout').then(() => {
|
|
523
523
|
if (this.afterLogout) {
|
|
524
|
-
let After = this.afterLogout(
|
|
525
|
-
After.then && After.then(auth.removeToken)
|
|
524
|
+
let After = this.afterLogout()
|
|
525
|
+
After.then && After.then(auth.removeToken())
|
|
526
526
|
} else {
|
|
527
527
|
auth.removeToken()
|
|
528
528
|
}
|