mode history 这个我知道,我问的是hash模式怎么去井号前面的字符.
怎样在修改地址栏回车后,清理没用的字符,比如说#号前面的这些,怎么排除非/的路径呀
{
path: '*',
component: () => import('../pages/not_found')
},
{
path: '/',
redirect: '/index',
component: layout,
children: [{
path: '/index',
component: () => import('../pages/index')
}]
},
虽然不知道你这个一堆a是哪儿来的0 - 0但是你可以利用正则去除这些无意义字符然后重定向,唔,重定向