diff --git a/.env.development b/.env.development index d84cc4f..9c78a78 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV = 'development' # 本地环境接口地址 -# VITE_API_URL = 'http://192.168.3.200:8808/' -VITE_API_URL = 'http://localhost:8808/' +VITE_API_URL = 'http://192.168.3.200:8808/' +# VITE_API_URL = 'http://localhost:8808/' diff --git a/vite.config.ts b/vite.config.ts index 31aa72e..d0e1038 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -54,8 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { // }, proxy: { '/api': { - // target: 'http://192.168.3.200:8808', - target: 'http://localhost:8808', + target: 'http://192.168.3.200:8808', changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '/api'), },