From 6d8b4e9a7864fed0582021e83c3f3467353e49d4 Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Wed, 3 Dec 2025 17:57:56 +0700 Subject: [PATCH] fix warning submenu.vue:39 [Vue warn]: Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with markRaw or using shallowRef instead of ref. --- app/components/content/encounter/process.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/content/encounter/process.vue b/app/components/content/encounter/process.vue index bbae92b6..f27a11fd 100644 --- a/app/components/content/encounter/process.vue +++ b/app/components/content/encounter/process.vue @@ -52,7 +52,7 @@ const router = useRouter() const { user, userActiveRole, getActiveRole } = useUserStore() const activeRole = getActiveRole() const activePosition = ref(getServicePosition(activeRole)) -const menus = ref([] as any) +const menus = shallowRef([] as any) const activeMenu = computed({ get: () => (route.query?.menu && typeof route.query.menu === 'string' ? route.query.menu : 'status'), set: (value: string) => {