M: Fix redirect to replace history
This commit is contained in:
parent
32b41620d8
commit
9da54d78ab
|
@ -14,11 +14,11 @@ function HomePage() {
|
||||||
if (!loading) {
|
if (!loading) {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
router.push(urls.manuals);
|
router.replace(urls.manuals);
|
||||||
}, PARAMETER.refreshTimeout);
|
}, PARAMETER.refreshTimeout);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
router.push(urls.library);
|
router.replace(urls.library);
|
||||||
}, PARAMETER.refreshTimeout);
|
}, PARAMETER.refreshTimeout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user