Difference: Redirection refers to jumping to another page. Its function is to prevent the user from entering random file names. When the user enters a path that has nothing to do with the system, it will jump to the specified page. Aliases refer to adding a new path to a route, so that no matter which path is applied, the page content of the same route will eventually be displayed; using aliases can hide the real path from the outside.
The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.
The difference between vue router redirection and alias
##Official description of redirection:
当用户访问 /a时,URL 将会被替换成 /b,然后匹配路由为 /b,
Description of alias:
/a 的别名是 /b,意味着,当用户访问 /b 时,URL 会保持为 /b,但是路由匹配则为 /a,就像用户访问 /a 一样。
vue.js Tutorial"
The above is the detailed content of What is the difference between vue router redirect and alias. For more information, please follow other related articles on the PHP Chinese website!