Kaynağa Gözat

代码提交

LiuShu_0203 5 ay önce
ebeveyn
işleme
136340734e
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      vite.config.ts

+ 2 - 2
vite.config.ts

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