diff --git a/src/base/ScrollView/ScrollView.vue b/src/base/ScrollView/ScrollView.vue index 25f06a0..4a773be 100644 --- a/src/base/ScrollView/ScrollView.vue +++ b/src/base/ScrollView/ScrollView.vue @@ -49,8 +49,6 @@ const scrollDOMRef = ref(null) const store = useStore() const languageRef = computed(() => store.language) -const emits = defineEmits(['scroll']) - function _initScroll() { if (!scrollDOMRef.value) { return diff --git a/src/components/CarouselWithIntro/CarouselWithIntro.vue b/src/components/CarouselWithIntro/CarouselWithIntro.vue index 19096ac..8b37f86 100644 --- a/src/components/CarouselWithIntro/CarouselWithIntro.vue +++ b/src/components/CarouselWithIntro/CarouselWithIntro.vue @@ -24,7 +24,7 @@ \ No newline at end of file + diff --git a/src/composables/useTime.js b/src/composables/useTime.js index 118ad40..dbbb77a 100644 --- a/src/composables/useTime.js +++ b/src/composables/useTime.js @@ -7,6 +7,8 @@ export const useTime = () => { const currentTime = computed(() => { return `${date.value.getHours().toString().padStart(2, '0')}:${date.value.getMinutes().toString().padStart(2, '0')}` }) + const currentHour = computed(() => date.value.getHours()) + const currentTimeMinute = computed(() => date.value.getMinutes()) const getDate = () => { timer.value = setInterval(() => { date.value = new Date() @@ -17,6 +19,8 @@ export const useTime = () => { onBeforeUnmount(() => clearInterval(timer.value)) return { - currentTime + currentTime, + currentHour, + currentTimeMinute } } diff --git a/src/views/Guide/Guide.vue b/src/views/Guide/Guide.vue index 29ee8a3..6607522 100644 --- a/src/views/Guide/Guide.vue +++ b/src/views/Guide/Guide.vue @@ -64,10 +64,10 @@