From 4c312c4865bfacbd9cede5cb133e5888b199501c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 6 Aug 2025 10:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui3/vite.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruoyi-ui3/vite.config.js b/ruoyi-ui3/vite.config.js index d3d9b6d..0f18347 100644 --- a/ruoyi-ui3/vite.config.js +++ b/ruoyi-ui3/vite.config.js @@ -45,6 +45,8 @@ export default defineConfig(({ mode, command }) => { port: 80, host: true, open: true, + // 如果端口占用自动切换端口 + strictPort: false, proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': {