const router = createRouter({ history: createWebHistory(), routes });
const router = createRouter({ history: createWebHashHistory(), routes });
vue3 生产环境 刷新404
原文:https://www.cnblogs.com/aknife/p/14878464.html