mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
test: reduce verbose log outputs
This commit is contained in:
parent
c335a6a2cf
commit
c8cba7a062
@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
console.log('[async] [sync]')
|
||||
process.client && console.log('[async] [sync]')
|
||||
const route = useRoute('suspense-async-parent-sync-child')
|
||||
</script>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
console.log('[sync]')
|
||||
process.client && console.log('[sync]')
|
||||
const route = useRoute('suspense-async-parent')
|
||||
</script>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
console.log('[sync] [async]')
|
||||
process.client && console.log('[sync] [async]')
|
||||
const route = useRoute('suspense-async-parent-sync-child')
|
||||
await new Promise(resolve => setTimeout(resolve, 500))
|
||||
console.log(`[sync] [${route.params.parent}] [async] [${route.params.child}] running async data`)
|
||||
process.client && console.log(`[sync] [${route.params.parent}] [async] [${route.params.child}] running async data`)
|
||||
const data = route.params
|
||||
</script>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
console.log('[sync] [sync]')
|
||||
process.client && console.log('[sync] [sync]')
|
||||
const route = useRoute('suspense-sync-parent-sync-child')
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user