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