n20-common-lib 2.2.36 → 2.2.37
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
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
filters: {
|
|
17
17
|
keyF({ path, query = {} }) {
|
|
18
18
|
path = path.replace(/^\//, routerBase)
|
|
19
|
-
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' +
|
|
19
|
+
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' + window._tab_route_key[path]
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
props: {
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
filters: {
|
|
53
53
|
keyF({ path, query = {} }) {
|
|
54
|
-
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' +
|
|
54
|
+
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' + window._tab_route_key[path]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
props: {
|
|
@@ -227,13 +227,18 @@ export default {
|
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
addRouterKey(path, query) {
|
|
230
|
-
let
|
|
231
|
-
if (
|
|
232
|
-
|
|
230
|
+
let nuPath = window.sessionStorage.getItem('not-update-path')
|
|
231
|
+
if (nuPath === path) {
|
|
232
|
+
window.sessionStorage.removeItem('not-update-path')
|
|
233
233
|
} else {
|
|
234
|
-
keys
|
|
234
|
+
let keys = window._tab_route_key
|
|
235
|
+
if (!keys[path]) {
|
|
236
|
+
keys[path] = 1
|
|
237
|
+
} else {
|
|
238
|
+
keys[path] = keys[path] + 1
|
|
239
|
+
}
|
|
240
|
+
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
235
241
|
}
|
|
236
|
-
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
237
242
|
},
|
|
238
243
|
routerPush({ path, query }) {
|
|
239
244
|
this.$router.push({ path, query })
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
filters: {
|
|
53
53
|
keyF({ path, query = {} }) {
|
|
54
|
-
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' +
|
|
54
|
+
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' + window._tab_route_key[path]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
props: {
|
|
@@ -237,13 +237,18 @@ export default {
|
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
addRouterKey(path, query) {
|
|
240
|
-
let
|
|
241
|
-
if (
|
|
242
|
-
|
|
240
|
+
let nuPath = window.sessionStorage.getItem('not-update-path')
|
|
241
|
+
if (nuPath === path) {
|
|
242
|
+
window.sessionStorage.removeItem('not-update-path')
|
|
243
243
|
} else {
|
|
244
|
-
keys
|
|
244
|
+
let keys = window._tab_route_key
|
|
245
|
+
if (!keys[path]) {
|
|
246
|
+
keys[path] = 1
|
|
247
|
+
} else {
|
|
248
|
+
keys[path] = keys[path] + 1
|
|
249
|
+
}
|
|
250
|
+
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
245
251
|
}
|
|
246
|
-
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
247
252
|
},
|
|
248
253
|
routerPush({ path, query }) {
|
|
249
254
|
this.$router.push({ path, query })
|