LiuShu_0203 hace 5 meses
padre
commit
05c1a206aa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}`), '')