refactor(projects): 代码优化

ISSUES CLOSED: \
This commit is contained in:
Soybean
2022-05-28 13:31:33 +08:00
parent 8f6d6ce3cb
commit d28b9039bb
17 changed files with 45 additions and 38 deletions

View File

@ -13,9 +13,12 @@ export default function useReload() {
async function handleReload(duration = 0) {
setFalse();
await nextTick();
setTimeout(() => {
setTrue();
}, duration);
if (duration > 0) {
setTimeout(() => {
setTrue();
}, duration);
}
}
return {