图片轮巡bug

master
liuyi 2 years ago
parent bfacb134cc
commit 902f96dc95

@ -96,7 +96,7 @@ export default {
totalPage: 0, // totalPage: 0, //
total: 0, // total: 0, //
picList: [], // picList: [], //
remainingTime: 15, // remainingTime: 0, //
isRuning: false, isRuning: false,
timer: null, timer: null,
loading: false, loading: false,
@ -221,7 +221,9 @@ export default {
this.startCountdown(); this.startCountdown();
} else { } else {
console.log(this.page); console.log(this.page);
this.remainingTime = this.selSpeed; this.remainingTime = parseInt(localStorage.getItem("totalTime"))
? parseInt(localStorage.getItem("totalTime"))
: 15;
this.getPicData(); this.getPicData();
this.startCountdown(); this.startCountdown();
} }
@ -256,6 +258,9 @@ export default {
}, },
computed: {}, computed: {},
mounted() { mounted() {
this.remainingTime = parseInt(localStorage.getItem("totalTime"))
? parseInt(localStorage.getItem("totalTime"))
: 15;
this.toggleCountdown(); this.toggleCountdown();
}, },
created() {}, created() {},

Loading…
Cancel
Save