fix(route): use explicit router import instead of plugin

This commit is contained in:
upsiflu 2024-12-18 11:32:17 +01:00
parent 4b199471cf
commit 9a943d6c37
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { computed } from 'vue' import { computed } from 'vue'
import { useRoute } from 'vue-router';
const { t } = useI18n() const { t } = useI18n()
const route = useRoute()
const labels = computed(() => ({ const labels = computed(() => ({
secondaryMenu: t('views.content.Base.menu.secondary'), secondaryMenu: t('views.content.Base.menu.secondary'),
@ -33,6 +35,6 @@ const labels = computed(() => ({
{{ t('views.content.Base.link.tracks') }} {{ t('views.content.Base.link.tracks') }}
</router-link> </router-link>
</nav> </nav>
<router-view :key="$route.fullPath" /> <router-view :key="route.fullPath" />
</main> </main>
</template> </template>