|
@@ -108,10 +108,12 @@ export default defineComponent({
|
|
timer.value = setInterval(() => {
|
|
timer.value = setInterval(() => {
|
|
// 获取当前时间
|
|
// 获取当前时间
|
|
const lastStr = getSecond(count.value)
|
|
const lastStr = getSecond(count.value)
|
|
- count.value--
|
|
|
|
- if( count.value == 0){
|
|
|
|
|
|
+ if( count.value <= 0){
|
|
onReset()
|
|
onReset()
|
|
|
|
+ return
|
|
}
|
|
}
|
|
|
|
+ count.value--
|
|
|
|
+
|
|
const str = getSecond(count.value)
|
|
const str = getSecond(count.value)
|
|
for (let i = 0; i < flipObjs.value.length; i++) {
|
|
for (let i = 0; i < flipObjs.value.length; i++) {
|
|
if (lastStr[i] === str[i]) {
|
|
if (lastStr[i] === str[i]) {
|