소스 검색

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