diff --git a/vite.config.js b/vite.config.js index e4bca3d..2ff0dca 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,7 +20,7 @@ export default defineConfig(({ command, mode }) => { const prodMock = true; return { - base: './', + base: '/', // hash模式配置"./",url模式配置"/" define: { 'process.env': env },