在router/index.js 加上 mode: ‘history’,
例子: mode: ‘history’,
routes: [
{
path: ‘/’, //首页
name: ‘HelloWorld’,
component: HelloWorld
},
vue项目的url去掉#
猜你喜欢
转载自blog.csdn.net/weixin_42821697/article/details/109014622
今日推荐
周排行