fix(projects): 修复在新版vite下环境变量获取不到的问题

This commit is contained in:
Soybean
2022-04-04 17:30:26 +08:00
parent 2d6d179d66
commit 3fb13ca9e7
9 changed files with 2033 additions and 3416 deletions

View File

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