vue路由文件
const router = createRouter({
history: createWebHistory('/abc/'),
routes
})
vite.config.js
export default defineConfig({
base: '/abc/',
})
nginx配置文件
location /abc {
alias html/dist/;
index index.html index.htm;
try_files $uri $uri/ html/dist/index.html;
}