Skip to content

Commit

Permalink
Update set.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hsBUPT authored Feb 10, 2025
1 parent 60b218c commit b1b8ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function getBgImg() {
}

function setBgImgDefault() {
let imgIndex = 1 + ~~(Math.random() * 10);
let imgIndex = 1 + ~~(Math.random() * 3); //3为图片数量
// console.log(imgIndex);
let imgUrl = `./img/background${imgIndex}.webp`;
let attempts = 0;
Expand Down

0 comments on commit b1b8ff1

Please sign in to comment.