fix. 임시 데이터 맞춰 수정
This commit is contained in:
15
layers/components/atoms/LocaleLink.vue
Normal file
15
layers/components/atoms/LocaleLink.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
const props = defineProps({
|
||||
to: {
|
||||
type: String,
|
||||
default: null,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
|
||||
const localePath = useLocalePath();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLink :to="localePath(props.to)"><slot></slot></NuxtLink>
|
||||
</template>
|
||||
Reference in New Issue
Block a user