Parcourir la source

feat: 调整本地环境

Jack Zhou il y a 1 mois
Parent
commit
d2e2f832a3
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      .env.development
  2. 2 2
      vite.config.ts

+ 2 - 2
.env.development

@@ -1,2 +1,2 @@
-VITE_API_HOST = 'http://localhost/api'
-VITE_BASE_URL = '/'
+VITE_API_HOST = 'http://192.168.14.224/Customer_Service_Online'
+VITE_BASE_URL = '/k_new_online/'

+ 2 - 2
vite.config.ts

@@ -52,13 +52,13 @@ export default defineConfig(({ mode }) => {
       })
     ],
     server: {
-      port: 80,
+      port: 8080,
       hmr: true,
       open: true,
       // 设置 https 代理
       proxy: {
         '/api': {
-          target: 'https://online-beta.kln.com/online_backend',
+          target: 'http://192.168.14.224',
           changeOrigin: true,
           rewrite: (path: string) => path.replace(/^\/api/, '')
         }