浏览代码

补充逻辑:全景图排序

任一存 1 年之前
父节点
当前提交
c60cf00614
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/store/index.js

+ 3 - 0
src/store/index.js

@@ -35,6 +35,9 @@ export default createStore({
                   itemLevel2.children.push(itemLevel3)
                 }
               }
+              itemLevel2.children.sort((item1, item2) => {
+                return item1.weight - item2.weight
+              })
             }
           }
         }