From d215f469cca2dbd3cb2df4493017adeadf7bf661 Mon Sep 17 00:00:00 2001 From: tangw Date: Thu, 16 Oct 2025 11:27:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 96b5945..361e5f2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -33,13 +33,15 @@ export default defineConfig(({ }, // vite 相关配置 server: { - port: 8888, + port: 5173, + //port: 8888, host: true, open: false, proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://47.97.125.165:8904', + target: 'http://localhost:9801', + //target: 'http://47.97.125.165:8904', // target: 'http://192.168.1.114:9801', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') From ac61538b470aa52336c13a6da297521053a461a1 Mon Sep 17 00:00:00 2001 From: tangw Date: Thu, 16 Oct 2025 11:29:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mzcx/cydj/components/printtest.vue | 620 ------------------- vite.config.js | 4 +- 2 files changed, 2 insertions(+), 622 deletions(-) delete mode 100644 src/views/mzcx/cydj/components/printtest.vue diff --git a/src/views/mzcx/cydj/components/printtest.vue b/src/views/mzcx/cydj/components/printtest.vue deleted file mode 100644 index ec370ef..0000000 --- a/src/views/mzcx/cydj/components/printtest.vue +++ /dev/null @@ -1,620 +0,0 @@ - - - - - diff --git a/vite.config.js b/vite.config.js index 361e5f2..7287b3c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -40,8 +40,8 @@ export default defineConfig(({ proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://localhost:9801', - //target: 'http://47.97.125.165:8904', + //target: 'http://localhost:9801', + target: 'http://47.97.125.165:8904', // target: 'http://192.168.1.114:9801', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '')