瀏覽代碼

Add demo english annotation.

杜府 3 年之前
父節點
當前提交
432e39d37e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      demo/src/pages/home/Home.svelte

+ 1 - 0
demo/src/pages/home/Home.svelte

@@ -4,6 +4,7 @@
     import menuList from '../../data/menuList';
 
     // 循环 menuList,将所有元素的 childs 组成一个数组
+    // Cycle menuList, and combine the childs of all elements into an array
     const menuListArr = menuList.reduce((acc, cur) => {
         if (cur.childs) {
             acc.push(...cur.childs);