const createRouter = () => new Router({
mode: 'history', // 需要服务端支持
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})const createRouter = () => new Router({
mode: 'history', // 需要服务端支持
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})本文是由用户"admin"发布,所有内容的版权归原作者所有。没有经过书面许可,任何单位或个人不得以任何形式复制、转载、引用本网站的内容。否则将追究法律责任。