简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
Vue踩坑日记: history路由打包后无法加载
在使用Vue框架时避免不了会使用到vue-router工具,Vue-router提供了Hash和History两种路由模式。默认为Hash模式,但此模式下URL中会存在 “#” 缺少美观,并且微信中不允许URL存在“#”。所以很多人会选择History路由模式。const router = new VueRouter({mode: 'history', // 设置为history模式base: p
到底了