n20-common-lib 2.3.3 → 2.3.4
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,4 +1,4 @@
|
|
|
1
|
-
import { getRela,
|
|
1
|
+
import { getCltRela, getRela, setRela } from '../../utils/relaNo.js'
|
|
2
2
|
import { getItem } from '../../utils/storageEdit'
|
|
3
3
|
|
|
4
4
|
export function has(vals, clt) {
|
|
@@ -6,6 +6,11 @@ export function has(vals, clt) {
|
|
|
6
6
|
if (clt) {
|
|
7
7
|
relaNos = getCltRela(clt)
|
|
8
8
|
} else {
|
|
9
|
+
// 判断此处有没有同步更新的标识,有标识代表权限更新过重新再取一次数据
|
|
10
|
+
let isSync = sessionStorage.getItem('isSync')
|
|
11
|
+
if (isSync === 'true') {
|
|
12
|
+
setRela()
|
|
13
|
+
}
|
|
9
14
|
relaNos = getRela().relaNos
|
|
10
15
|
}
|
|
11
16
|
if (typeof vals === 'string') {
|
|
@@ -58,6 +58,7 @@ async function asyncGetRelaNos(appNo, rns) {
|
|
|
58
58
|
let ssRelaNosG = getItem('relaNosGlobal')
|
|
59
59
|
ssRelaNosG.push(...oRelaNos)
|
|
60
60
|
setItem('relaNosGlobal', ssRelaNosG, isSync)
|
|
61
|
+
isSync && sessionStorage.setItem('isSync', isSync)
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
export default asyncGetRelaNos
|