diff --git a/vite.config.js b/vite.config.js index d3d9b6d..2eb2f15 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,5 @@ -import { defineConfig, loadEnv } from 'vite' import path from 'path' +import { defineConfig, loadEnv } from 'vite' import createVitePlugins from './vite/plugins' const baseUrl = 'http://localhost:8080' // 后端接口 @@ -42,7 +42,7 @@ export default defineConfig(({ mode, command }) => { }, // vite 相关配置 server: { - port: 80, + port: 81, host: true, open: true, proxy: {