From 4e954e42d5effb6a9cddc1574c3a911ada1a9a74 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 31 May 2024 09:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 12 ++++++++++-- vite.config.js | 4 ---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index aca7cf5..685ec9a 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,14 @@ # 本地环境 ENV = development -# 本地环境接口地址 +# 测试 # VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' -VITE_API_URL = 'https://cashiernew.sxczgkj.cn/cashier-client' \ No newline at end of file + +# 阿伟 +# VITE_API_URL = 'http://192.168.2.96:10587/cashier-client' + +# 鹏辉 +# VITE_API_URL = 'http://192.168.2.41:10587/cashier-client' + +# 正式 +VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client' \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index b1aab91..ebdb6b2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,10 +12,6 @@ export default defineConfig(({ command, mode }) => { proxy: { "/api": { target: env.VITE_API_URL, - // target: 'http://192.168.2.96:10587/cashier-client', // 阿伟 - // target: 'http://192.168.2.41:10587/cashier-client', // 鹏辉 - // target: "https://cashierclient.sxczgkj.cn/cashier-client", // 线上 - // target: 'https://cashier-client.sxczgkj.cn/cashier-client', // 测试 changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ""), },