chore: update

This commit is contained in:
Anthony Fu 2023-09-01 17:02:41 +02:00
parent 05f8a29060
commit e8764efe27
3 changed files with 4 additions and 3 deletions

View File

@ -15,8 +15,9 @@
</template> </template>
<script setup> <script setup>
function trigger () { async function trigger () {
document.getElementById('btn-a').click() document.getElementById('btn-a').click()
await new Promise(resolve => setTimeout(resolve, 10))
document.getElementById('btn-b').click() document.getElementById('btn-b').click()
} }
</script> </script>

View File

@ -7,5 +7,5 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
await new Promise(resolve => setTimeout(resolve, 100)) await new Promise(resolve => setTimeout(resolve, 200))
</script> </script>

View File

@ -13,7 +13,7 @@ await Promise.all([
// clear nuxt build files // clear nuxt build files
...dirs.map(dir => fs.remove(`${dir}/.nuxt`)), ...dirs.map(dir => fs.remove(`${dir}/.nuxt`)),
// clear vite cache // clear vite cache
...dirs.map(dir => fs.remove(`${dir}/node_modules/.vite`), { force: true }) ...dirs.map(dir => fs.remove(`${dir}/node_modules/.cache`), { force: true })
]) ])
await Promise.all( await Promise.all(