File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ const props = defineProps({
11
11
required: false ,
12
12
},
13
13
})
14
+
15
+ const { isMobile } = useDevice ()
14
16
</script >
15
17
16
18
<template >
@@ -19,8 +21,7 @@ const props = defineProps({
19
21
<VueFesLogo />
20
22
</div >
21
23
<div v-if =" !hasAuth" class =" footer-info" >
22
- <!-- @vue-expect-error TODO: 何か @nuxtjs/module-device の型がうまく推論されていないので一端回避 -->
23
- <div v-if =" !$device.isMobile" class =" footer-info-links" >
24
+ <div v-if =" !isMobile" class =" footer-info-links" >
24
25
<div class =" contacts" >
25
26
<ContactLinks />
26
27
</div >
@@ -29,16 +30,14 @@ const props = defineProps({
29
30
</div >
30
31
<PrivacyPolicyAndCoc />
31
32
</div >
32
- <!-- @vue-expect-error TODO: 何か @nuxtjs/module-device の型がうまく推論されていないので一端回避 -->
33
- <div v-if =" !$device.isMobile" class =" footer-copyright" >
33
+ <div v-if =" !isMobile" class =" footer-copyright" >
34
34
<CopyrightText />
35
35
</div >
36
36
</div >
37
37
<div v-if =" hasAuth" class =" footer-info" >
38
38
<CopyrightText />
39
39
</div >
40
- <!-- @vue-expect-error TODO: 何か @nuxtjs/module-device の型がうまく推論されていないので一端回避 -->
41
- <div v-if =" !hasAuth && $device.isMobile" class =" footer-copyright" >
40
+ <div v-if =" !hasAuth && isMobile" class =" footer-copyright" >
42
41
<CopyrightText />
43
42
</div >
44
43
</section >
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import TimetableView from '~/components/timetable/TimetableView.vue'
4
4
import ScrollHint from ' scroll-hint'
5
5
import ' scroll-hint/css/scroll-hint.css'
6
6
7
+ const { isMobile } = useDevice ()
8
+
7
9
onMounted (() => {
8
10
new ScrollHint (' .timetable-wrapper' , {
9
11
suggestiveShadow: true ,
@@ -22,8 +24,7 @@ onMounted(() => {
22
24
:title =" 'Time table'"
23
25
:yamato-title =" $t('top.timetable_subtitle')"
24
26
/>
25
- <!-- @vue-expect-error TODO: 何か @nuxtjs/module-device の型がうまく推論されていないので一端回避 -->
26
- <div v-if =" $device.isMobile" class =" timetable-wrapper" >
27
+ <div v-if =" isMobile" class =" timetable-wrapper" >
27
28
<TimetableViewMobile />
28
29
</div >
29
30
<div v-else class =" timetable-wrapper" >
You can’t perform that action at this time.
0 commit comments