doway-coms 1.1.61 → 1.1.63
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/packages/utils/common.js +1 -1
- package/packages/utils/store.js +16 -16
package/package.json
CHANGED
package/packages/utils/common.js
CHANGED
|
@@ -242,7 +242,7 @@ export function replaceParamString(
|
|
|
242
242
|
to.meta['aliveCacheKey'] = to.params.aliveCacheKey
|
|
243
243
|
}
|
|
244
244
|
if(!to.meta.aliveCacheKey){
|
|
245
|
-
alert('
|
|
245
|
+
alert('防呆,子应用没有路由缓存键:'+JSON.stringify(to))
|
|
246
246
|
}
|
|
247
247
|
if (to.meta.moduleCode && !store.getters.moduleViewInfo[to.meta.moduleCode]) {
|
|
248
248
|
store
|
package/packages/utils/store.js
CHANGED
|
@@ -46,23 +46,23 @@ export default new Vuex.Store({
|
|
|
46
46
|
let newRoutePath =
|
|
47
47
|
tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
|
|
48
48
|
history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
|
|
49
|
-
let keepAliveComp =
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
// let keepAliveComp =
|
|
50
|
+
// tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
|
|
51
|
+
// .componentInstance
|
|
52
52
|
|
|
53
|
-
for (let cacheKey in keepAliveComp.cache) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
53
|
+
// for (let cacheKey in keepAliveComp.cache) {
|
|
54
|
+
// if (
|
|
55
|
+
// keepAliveComp.cache[cacheKey].componentInstance._uid ===
|
|
56
|
+
// tabInfo.compUid
|
|
57
|
+
// ) {
|
|
58
|
+
// keepAliveComp.cache[newRoutePath] = keepAliveComp.cache[cacheKey]
|
|
59
|
+
// keepAliveComp.keyToCache = newRoutePath
|
|
60
|
+
// XEUtils.remove(keepAliveComp.keys, loopKey => loopKey === cacheKey)
|
|
61
|
+
// delete keepAliveComp.cache[cacheKey]
|
|
62
|
+
// keepAliveComp.keys.push(newRoutePath)
|
|
63
|
+
// break
|
|
64
|
+
// }
|
|
65
|
+
// }
|
|
66
66
|
}
|
|
67
67
|
//通知父应用修改Tab标签文字描述
|
|
68
68
|
if(window.$wujie){
|