vue 地址栏去掉#

可以使用路由的history模式

const router = new VueRouter({
mode: ‘history’,//history去掉#,hash是有#的
routes: […]
})

Logo

前往低代码交流专区

更多推荐