Browse Source

提交代码

LiuShu_0203 5 months ago
parent
commit
05c1a206aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vite.config.ts

+ 1 - 1
vite.config.ts

@@ -116,7 +116,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
                 // 这里的意思是 以/api开头发送的请求都会被转发到 http://xxx:9000
                 [env.VITE_APP_API_BASEURL]: {
                     // target: 'http://192.168.50.133:9999',
-                    target: 'http://192.168.50.133:9999',
+                    target: 'http://localhost:9999',
                     // 改变 Host Header
                     changeOrigin: true,
                     rewrite: (path) => path.replace(new RegExp(`^${env.VITE_APP_API_BASEURL}`), '')