style: format code for all

This commit is contained in:
LZHD
2021-07-06 01:01:42 +08:00
committed by 踏学吾痕
parent e1200f2dbe
commit 77a1a47110
114 changed files with 7068 additions and 1068 deletions

View File

@@ -11,8 +11,14 @@
</div>
</template>
<script lang='ts'>
import { ref, onBeforeMount, getCurrentInstance, nextTick } from "vue";
<script lang="ts">
import {
ref,
onBeforeMount,
getCurrentInstance,
nextTick,
onUnmounted
} from "vue";
import flippers from "./Filpper";
export default {
name: "Flop",
@@ -110,6 +116,13 @@ export default {
});
});
onUnmounted(() => {
if (timer.value) {
clearInterval(timer.value);
timer.value = null;
}
});
return {
timer,
flipObjs,