fix: preserve link share hash on task back navigation (#1623)

This commit is contained in:
kolaente 2025-10-09 10:07:37 +02:00 committed by GitHub
parent 18d41f6b76
commit 0c602d10b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -597,7 +597,7 @@
<script lang="ts" setup>
import {ref, reactive, shallowReactive, computed, watch, nextTick, onMounted, onBeforeUnmount} from 'vue'
import {useRouter, type RouteLocation, onBeforeRouteLeave} from 'vue-router'
import {useRouter, useRoute, type RouteLocation, onBeforeRouteLeave} from 'vue-router'
import {storeToRefs} from 'pinia'
import {useI18n} from 'vue-i18n'
import {unrefElement, useMediaQuery} from '@vueuse/core'
@ -665,6 +665,7 @@ defineEmits<{
}>()
const router = useRouter()
const route = useRoute()
const {t} = useI18n({useScope: 'global'})
const projectStore = useProjectStore()
@ -741,6 +742,7 @@ const project = computed(() => projectStore.projects[task.value.projectId])
const projectRoute = computed(() => ({
name: 'project.index',
params: {projectId: task.value.projectId},
hash: route.hash,
}))
const canWrite = computed(() => (