Skip to content

Commit

Permalink
hashの処理一旦消す
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed May 22, 2024
1 parent 251423f commit 58def1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/components/requestDetail/CommentLog.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang="ts" setup>
import { storeToRefs } from 'pinia'
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import { useUserStore } from '/@/stores/user'
Expand All @@ -19,9 +17,6 @@ const formattedDateAndTime = formatDateAndTime(props.comment.createdAt)
const userStore = useUserStore()
const { userMap } = storeToRefs(userStore)
const route = useRoute()
const hash = computed(() => route.hash.substring(1))
</script>

<template>
Expand Down
7 changes: 0 additions & 7 deletions src/pages/RequestDetailPage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts" setup>
import { storeToRefs } from 'pinia'
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
import { useGroupStore } from '/@/stores/group'
Expand Down Expand Up @@ -40,12 +39,6 @@ if (!isUserFetched.value) {
if (!isTagFetched.value) {
await useFetchTagsUsecase()
}
onMounted(() => {
if (route.hash !== '') {
document.getElementById(route.hash.substring(1))?.scrollIntoView(true)
}
})
</script>

<template>
Expand Down

0 comments on commit 58def1b

Please sign in to comment.