fix(task): navigate back to project when the project was the last page in the history the user visited
This commit is contained in:
parent
7bf2664e55
commit
8ff59d4649
@ -25,7 +25,16 @@
|
|||||||
v-for="p in projectStore.getAncestors(project)"
|
v-for="p in projectStore.getAncestors(project)"
|
||||||
:key="p.id"
|
:key="p.id"
|
||||||
>
|
>
|
||||||
<router-link :to="{ name: 'project.index', params: { projectId: p.id } }">
|
<a
|
||||||
|
v-if="router.options.history.state.back?.includes('/projects/'+p.id+'/') || false"
|
||||||
|
@click="router.back()"
|
||||||
|
>
|
||||||
|
{{ getProjectTitle(p) }}
|
||||||
|
</a>
|
||||||
|
<router-link
|
||||||
|
v-else
|
||||||
|
:to="{ name: 'project.index', params: { projectId: p.id } }"
|
||||||
|
>
|
||||||
{{ getProjectTitle(p) }}
|
{{ getProjectTitle(p) }}
|
||||||
</router-link>
|
</router-link>
|
||||||
<span
|
<span
|
||||||
|
Loading…
x
Reference in New Issue
Block a user