* Welcome to Github for more original technical articles on The Acura website!

Fault 1: The assetsPublicPath configuration is incorrect

Solution: Open the config/index.js file

build:{
    // assetsPublicPath: '/'
    assetsPublicPath: '/'
}
Copy the code

Fault 2: The route history mode is incorrectly configured

Solution: Disable route HistorYM mode

export default new Router({
  // mode: 'history', // require service support
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
})
Copy the code