Skip to content

Commit 09d27d7

Browse files
authored
fix: 修复路由“order”字段 数字 无法重复的bug (#487)
1 parent 7948963 commit 09d27d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lin/util/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function getTypeOf(obj) {
9494

9595
function insertItem(item, arr) {
9696
const { order } = item
97-
if (typeof arr[order] !== 'number') {
97+
if (!arr[order]) {
9898
arr[order] = item
9999
return
100100
}

0 commit comments

Comments
 (0)