浏览代码

Merge branch 'dev' of http://192.168.0.115:3000/bill/fuse-code into dev

xzw 2 年之前
父节点
当前提交
b43b0c6156
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      config.js
  2. 1 1
      vite.config.ts

+ 1 - 1
config.js

@@ -1,3 +1,3 @@
 export default {
-  dev: true
+  dev: false
 }

+ 1 - 1
vite.config.ts

@@ -12,7 +12,7 @@ const proxy = {
     rewrite: path => path.replace(/^\/local/, '')
   },
   '/fusion': {
-    target: 'https://test-mix3d.4dkankan.com',
+    target: config.dev ? 'https://test-mix3d.4dkankan.com' : 'https://mix3d.4dkankan.com',
     changeOrigin: true,
     rewrite: path => path.replace(/^\/api/, '')
   },