我无法为我的子路线进行转换。
我有以下页面:
pages/
child/
_id.vue
child.vue
index.vue
在索引和任何子路由之间导航都会触发转换,但是当从一个子路由导航到另一子路由时,不会发生转换。
注意有静态路由/child和动态路线/孩子/_id. The <nuxt-child />
组件位于 child.vue 内部:
<template>
<div class="container">
<h1 class="title">
Child Root Page
</h1>
<nuxt-child />
</div>
</template>
<script>
export default {
key(route) {
return route.fullPath
},
}
</script>
如果我删除静态路由孩子.vue并移动<nuxt-child />
到index.vue的所有转换都有效,但是我不再有“父”子页面了。
在这种情况下是否可以让转换起作用?
我有一个小仓库 https://github.com/metervara/nuxt-child-transition显示问题和github页面 https://metervara.github.io/nuxt-child-transition/部署站点后。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)