fix: preserve link share hash on task back navigation (#1623)
This commit is contained in:
parent
18d41f6b76
commit
0c602d10b8
|
|
@ -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(() => (
|
||||
|
|
|
|||
Loading…
Reference in New Issue