Print

vue中hash模式和history的区别


作者: 文章来源:

本文原地址:https://www.mimiwuqi.com/kuangjia/194899.html

const createRouter = () => new Router({
 mode: 'history', // 需要服务端支持
 scrollBehavior: () => ({ y: 0 }),
 routes: constantRoutes
})


更多 前端框架 请访问 https://www.mimiwuqi.com/kuangjia/