File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { useRuntimeConfig , useWithBase } from ' #imports'
2
+ import { useRuntimeConfig } from ' #imports'
3
3
import { useI18n } from ' #i18n'
4
4
import { useNav } from ' ~/composables/useNav'
5
5
import { useScreenOrientation , useWindowSize } from ' @vueuse/core'
@@ -36,10 +36,8 @@ const toggleMenu = () => {
36
36
showMenu .value = ! showMenu .value
37
37
}
38
38
39
- const withBase = useWithBase ()
40
39
const getAnchorPath = computed (
41
- () => (anchor : string ) =>
42
- locale .value === ' ja' ? withBase (` /${anchor } ` ) : withBase (` en/${anchor } ` ),
40
+ () => (anchor : string ) => (locale .value === ' ja' ? ` /${anchor } ` : ` /en/${anchor } ` ),
43
41
)
44
42
</script >
45
43
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { useI18n } from ' #i18n'
3
3
import { computed } from ' vue'
4
+ import { useWithBase } from ' #imports'
4
5
5
6
const { locale } = useI18n ()
6
7
8
+ const withBase = useWithBase ()
9
+
7
10
const getAnchorPath = computed (
8
- () => (anchor : string ) => (locale .value === ' ja' ? ` /${anchor } ` : ` /en/${anchor } ` ),
11
+ () => (anchor : string ) =>
12
+ locale .value === ' ja' ? withBase (` /${anchor } ` ) : withBase (` /en/${anchor } ` ),
9
13
)
10
14
</script >
11
15
You can’t perform that action at this time.
0 commit comments