mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
test: add regression test for using route
in template (#28967)
This commit is contained in:
parent
2fde562946
commit
35ebf8d90b
3
test/fixtures/basic/pages/index.vue
vendored
3
test/fixtures/basic/pages/index.vue
vendored
@ -99,10 +99,13 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { setupDevtoolsPlugin } from '@vue/devtools-api'
|
import { setupDevtoolsPlugin } from '@vue/devtools-api'
|
||||||
|
import { toDisplayString } from 'vue'
|
||||||
import { useRuntimeConfig } from '#imports'
|
import { useRuntimeConfig } from '#imports'
|
||||||
import { importedRE, importedValue } from '~/some-exports'
|
import { importedRE, importedValue } from '~/some-exports'
|
||||||
import type { NuxtIsland, ServerOnlyComponent } from '#build/components'
|
import type { NuxtIsland, ServerOnlyComponent } from '#build/components'
|
||||||
|
|
||||||
|
toDisplayString(useRoute())
|
||||||
|
|
||||||
setupDevtoolsPlugin({}, () => {}) as any
|
setupDevtoolsPlugin({}, () => {}) as any
|
||||||
const island = ref<InstanceType<typeof ServerOnlyComponent>>()
|
const island = ref<InstanceType<typeof ServerOnlyComponent>>()
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
|
Loading…
Reference in New Issue
Block a user