fix: 资产管理区分主子阵地v1.0

develop
时启龙 2024-08-28 10:39:25 +08:00
parent 1d79aa9a9b
commit 36fb3c8627
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default {
async function init() { async function init() {
const res = await getSysconfQueryByCode({ code: 'isLeaderPosition' }) const res = await getSysconfQueryByCode({ code: 'isLeaderPosition' })
if (!res.success) return if (!res.success) return
isLeaderPosition.value = res.data.value isLeaderPosition.value = res.data.value === 'true'
addStorageEvent('isLeaderPosition', res.data.value) addStorageEvent('isLeaderPosition', res.data.value)
if (isLeaderPosition.value) { if (isLeaderPosition.value) {
const res = await getDictChildren({ value: 'POSITION_DATA' }) const res = await getDictChildren({ value: 'POSITION_DATA' })
@ -49,6 +49,8 @@ export default {
}, },
...res.data ...res.data
] ]
} else {
addStorageEvent('selectPostion', '')
} }
} }
init() init()