vue3.0中改变router为hash或者history
vue3.0中改变router为hash或者history前言:在这里我们分析总结下vue2.0和vue3.0 改变router为hash或者history 的方法。vue2.0history:const router = new VueRouter({ mode: 'history', routes: [...]})hash:const router = new VueRouter({ mode: 'hash', //或者把这句话注释,默认就是hash routes
转载
2021-05-12 10:07:01 ·
1299 阅读 ·
0 评论