fix(route): use explicit router import instead of plugin
This commit is contained in:
parent
4b199471cf
commit
9a943d6c37
|
@ -1,8 +1,10 @@
|
|||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { computed } from 'vue'
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
const { t } = useI18n()
|
||||
const route = useRoute()
|
||||
|
||||
const labels = computed(() => ({
|
||||
secondaryMenu: t('views.content.Base.menu.secondary'),
|
||||
|
@ -33,6 +35,6 @@ const labels = computed(() => ({
|
|||
{{ t('views.content.Base.link.tracks') }}
|
||||
</router-link>
|
||||
</nav>
|
||||
<router-view :key="$route.fullPath" />
|
||||
<router-view :key="route.fullPath" />
|
||||
</main>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue