Commit e6ea6a66 authored by Facius's avatar Facius

improve: 悬浮按钮点击优化

parent 18176b9c
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
this.clicked += 1 this.clicked += 1
setTimeout(() => { setTimeout(() => {
// 三秒不点击,算失去活跃 // 三秒不点击,算失去活跃
this.clicked -= 1 this.clicked = Math.max(0, this.clicked - 1)
}, 3000) }, 3000)
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment