Skip to content

Commit 8e96b76

Browse files
优化
1 parent 7dae83e commit 8e96b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ let inFocus = false; // 输入框是否获取到了焦点
7777
}
7878

7979
savePidList.push(pid);
80-
savePidList.sort();
80+
savePidList.sort((a, b) => a - b);
8181
localStorage.setItem("savePidList", JSON.stringify(savePidList));
8282
}
8383
});

0 commit comments

Comments
 (0)