From 4e0cf04dac080b9d029aba025a07212832955d7a Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:28:01 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=81=E0=B9=87=E0=B8=9A=E0=B8=82?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=20=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=20menuList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/MainLayout.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index bef2a31d..1ebfb618 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -39,11 +39,7 @@ const toggleBtnLeft = () => { onMounted(async () => { { const data = await fetch("/toc.json").then((r) => r.json()); - menuList.value[1].children = data; - } - { - const data = await fetch("/pages.json").then((r) => r.json()); - menuList.value.push(...data); + menuList.value = data; } });