Skip to content

Commit f139fbe

Browse files
优化
1 parent 23babc9 commit f139fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ setTimeout(function () {
110110
if (pid) {
111111
doEnter(pid, needSavePid);
112112
} else {
113-
input.value = '116000000';
113+
input.value = '116000000'; // 一个不错的PID起始值,值太小图不好看
114114
}
115115
input.focus(); // 自动获取焦点
116116
}, 500);
@@ -282,7 +282,7 @@ function doEnter (pid, needSavePid) {
282282
// 保存pid
283283
curPid = pid;
284284
if (needSavePid !== false) {
285-
localStorage.setItem('pid', input.value);
285+
localStorage.setItem('pid', pid);
286286
}
287287

288288
imgs.innerHTML = ''; // 清空图片

0 commit comments

Comments
 (0)