fix: แก้ การเก็บข้อมูล ของ menuList

This commit is contained in:
Net 2024-06-24 17:28:01 +07:00
parent 0eb7ecc977
commit 4e0cf04dac

View file

@ -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;
}
});