目录为 mp 
//vue.config.js  改为  
publicPath: '/mp/',
const createRouter = () =>
  new Router({
    base: '/mp/',          //改为
    mode: 'history', // require service support
    scrollBehavior: () => ({ y: 0 }),
    routes: constantRoutes
  })

标签: none

添加新评论