The web project page deployed online manually refreshes and reports a 404 error, and local debugging is fine.

insert image description here

⚠️ Replace the one in the routermode: 'historymode: 'hash',

const createRouter = () => new Router({
    // mode: 'history', // require service support
    mode: 'hash',
    scrollBehavior: () => ({ y: 0 }),
    routes: constantRoutes
})

const router = createRouter()

insert image description here

Guess you like

Origin blog.csdn.net/m0_48259951/article/details/130889105