export function createRouter () {
return new Router({
mode: "history",
scrollBehavior: () => ({ y: 0 }),
routes
})
}
didn"t you understand when you read the document? Test by yourself, after removing the mode root route, you will automatically add-sharp/
eg: http://localhost:8080/-sharp/ http://localhost:8080/-sharp/index
excuse me why this is and what this scrollBehavior means.