diff --git a/web/vite.config.js b/web/vite.config.js index 271713a18..1de5fc39c 100644 --- a/web/vite.config.js +++ b/web/vite.config.js @@ -50,7 +50,7 @@ export default ({ } const config = { - base: './', // index.html文件所在位置 + base: '/', // index.html文件所在位置 root: './', // js导入的资源路径,src resolve: { alias,