diff --git a/src/layouts/components/AmsPosition.vue b/src/layouts/components/AmsPosition.vue index ad3d372..ef0696c 100644 --- a/src/layouts/components/AmsPosition.vue +++ b/src/layouts/components/AmsPosition.vue @@ -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()