From 8e5e0b0d8863f5e5d76bbdbddd7150644b6cecab Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 19 May 2025 11:15:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Fix=20the=20issue=20of=20abnormal=20disp?= =?UTF-8?q?lay=20of=20the=20professional=20version=20of=E2=80=A6=20(#8723)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #8722 --- frontend/src/views/home/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 076d73998..4777b2e3c 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -280,6 +280,7 @@ import { loadBaseInfo, loadCurrentInfo } from '@/api/modules/dashboard'; import { getIOOptions, getNetworkOptions } from '@/api/modules/host'; import { getSettingInfo, loadUpgradeInfo } from '@/api/modules/setting'; import { GlobalStore } from '@/store'; +import { storeToRefs } from 'pinia'; const router = useRouter(); const globalStore = GlobalStore(); @@ -305,7 +306,7 @@ const ioOptions = ref(); const netOptions = ref(); const licenseRef = ref(); -const isProductPro = ref(); +const { isProductPro } = storeToRefs(globalStore); const searchInfo = reactive({ ioOption: 'all', @@ -551,7 +552,6 @@ const toUpload = () => { }; onMounted(() => { - isProductPro.value = globalStore.isProductPro; window.addEventListener('focus', onFocus); window.addEventListener('blur', onBlur); loadSafeStatus();