Problems with Vue-router redirection

when using redirection.

path:"/ parent",
redirect:"/"
when the redirection rule is set in this way, the page is not redirected

but if I set it this way, the page can be redirected again,
path:"/",
redirect:"/ parent"

Why is this? My route is in hash mode

I hope the boss can give me some advice

Jul.06,2021

use router.push ('/') directly; try it?

Menu