如上图这种情况。
在router/index.js中最下方加入mode: 'history'
const router = new VueRouter({
mode: 'history',
routes
})
版权属于:乐心湖's Blog
本文链接:https://www.xn2001.com/archives/430.html
声明:博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!
如上图这种情况。
在router/index.js中最下方加入mode: 'history'
const router = new VueRouter({
mode: 'history',
routes
})
版权属于:乐心湖's Blog
本文链接:https://www.xn2001.com/archives/430.html
声明:博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!