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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -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
@@ -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
- tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
51
- .componentInstance
49
+ // let keepAliveComp =
50
+ // tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
51
+ // .componentInstance
52
52
 
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
- }
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){