fix: return redirect
This commit is contained in:
parent
b9f0635d9f
commit
7c964c29d4
@ -94,14 +94,13 @@ function useAuth() {
|
|||||||
|
|
||||||
const last = getLastVisitedRoute()
|
const last = getLastVisitedRoute()
|
||||||
if (last) {
|
if (last) {
|
||||||
router.push({
|
return router.push({
|
||||||
...last,
|
...last,
|
||||||
hash,
|
hash,
|
||||||
})
|
})
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
router.push({
|
return router.push({
|
||||||
name: `project.${view}`,
|
name: `project.${view}`,
|
||||||
params: {projectId},
|
params: {projectId},
|
||||||
hash,
|
hash,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user