摘要: vue-router 默认 hash 模式,但是这种模式路由中带有#号,比较丑,这时我们可以使用history模式来去掉#,具体步骤如下: 1、找到src/router/index.js,在创建router时增加base参数(假设设为你想要的根目录web,访问路由为:localhost:8080/w 阅读全文
posted @ 2021-01-13 16:50 一两米 阅读(978) 评论(0) 推荐(0) 编辑