fix: 资产管理区分主子阵地v1.0
parent
1d79aa9a9b
commit
36fb3c8627
|
@ -37,7 +37,7 @@ export default {
|
|||
async function init() {
|
||||
const res = await getSysconfQueryByCode({ code: 'isLeaderPosition' })
|
||||
if (!res.success) return
|
||||
isLeaderPosition.value = res.data.value
|
||||
isLeaderPosition.value = res.data.value === 'true'
|
||||
addStorageEvent('isLeaderPosition', res.data.value)
|
||||
if (isLeaderPosition.value) {
|
||||
const res = await getDictChildren({ value: 'POSITION_DATA' })
|
||||
|
@ -49,6 +49,8 @@ export default {
|
|||
},
|
||||
...res.data
|
||||
]
|
||||
} else {
|
||||
addStorageEvent('selectPostion', '')
|
||||
}
|
||||
}
|
||||
init()
|
||||
|
|
Loading…
Reference in New Issue