|
@@ -42,18 +42,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
toggleVc() {
|
|
|
- const nowTime = new Date().getTime()
|
|
|
- if (nowTime - this.lastClickTime < 3000) {
|
|
|
- this.count++
|
|
|
- } else {
|
|
|
- this.count = 0
|
|
|
- }
|
|
|
- this.lastClickTime = nowTime
|
|
|
- if (this.count >= this.limit) {
|
|
|
- const vconDom = document.getElementById('__vconsole')
|
|
|
- this.toggleClass(vconDom, 'show')
|
|
|
- this.count = 0
|
|
|
- }
|
|
|
+ // const nowTime = new Date().getTime()
|
|
|
+ // if (nowTime - this.lastClickTime < 3000) {
|
|
|
+ // this.count++
|
|
|
+ // } else {
|
|
|
+ // this.count = 0
|
|
|
+ // }
|
|
|
+ // this.lastClickTime = nowTime
|
|
|
+ // if (this.count >= this.limit) {
|
|
|
+ // const vconDom = document.getElementById('__vconsole')
|
|
|
+ // this.toggleClass(vconDom, 'show')
|
|
|
+ // this.count = 0
|
|
|
+ // }
|
|
|
+
|
|
|
+ const vconDom = document.getElementById('__vconsole')
|
|
|
+ this.toggleClass(vconDom, 'show')
|
|
|
}
|
|
|
}
|
|
|
}
|