From 36fb3c86270a60ff6362295c0694f53893aba5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Wed, 28 Aug 2024 10:39:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B5=84=E4=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E4=B8=BB=E5=AD=90=E9=98=B5=E5=9C=B0v1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/AmsPosition.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()