chore(client): tweak ui

This commit is contained in:
syuilo
2022-07-02 22:07:04 +09:00
parent ec41aefeea
commit 9c6a220810
4 changed files with 46 additions and 28 deletions

View File

@@ -4,6 +4,8 @@ export function useInterval(fn: () => void, interval: number, options: {
immediate: boolean;
afterMounted: boolean;
}): void {
if (Number.isNaN(interval)) return;
let intervalId: number | null = null;
if (options.afterMounted) {