fix: แก้ การเก็บข้อมูล ของ menuList
This commit is contained in:
parent
0eb7ecc977
commit
4e0cf04dac
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue