Commit 9a048c59 by xuyl

优化定时器代码

1 parent 6a3069c9
......@@ -49,7 +49,7 @@ export default {
verifyQRCodeFailsToOpen: false,
addLoading: false,
qrCodeInterval: null,
qrCodeIntervalList:[],
qrCodeIntervalList: [],
qrcodeUrl: '',
qrCodeVisible: false,
qrcodeId: '',
......@@ -162,7 +162,7 @@ export default {
this.clearAllInterval()
})
},
clearAllInterval(){
clearAllInterval() {
this.qrCodeIntervalList.forEach(item => {
clearInterval(item);
})
......@@ -190,7 +190,7 @@ export default {
},
refreshQrcode: utils.debounce(function () {
this.handleqrCode()
}, 3000)
}, 5000)
},
computed: {
listenChange() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!