Commit 9a048c59 by xuyl

优化定时器代码

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