miaofuhao hace 1 semana
padre
commit
ca8c5111c3

+ 1 - 1
apps/web-ele/.env.development

@@ -6,7 +6,7 @@ VITE_BASE=/
6 6
 # 接口地址
7 7
 VITE_GLOB_API_URL=http://39.164.159.226:8088
8 8
 # VITE_GLOB_API_URL=http://192.168.1.170:8080
9
-
9
+VITE_GLOB_FLOW_URL=http://192.168.31.160:8082
10 10
 # 是否开启 Nitro Mock服务,true 为开启,false 为关闭
11 11
 VITE_NITRO_MOCK=false
12 12
 

+ 1 - 5
apps/web-ele/src/views/workflow/components/flow-designer.vue

@@ -36,7 +36,7 @@ Object.entries(params).forEach(([key, value]) => {
36 36
  */
37 37
 // const url = `${import.meta.env.VITE_GLOB_API_URL}/warm-flow-ui/index.html?${stringify(params)}`;
38 38
 // 将空格编码从"+"改为"%20"
39
-const url = `http://192.168.1.21:8082/index.html?${urlParams.toString().replace(/\+/g, '%20')}`;
39
+const url = `${import.meta.env.VITE_GLOB_FLOW_URL}/index.html?${urlParams.toString().replaceAll('+', '%20')}`;
40 40
 
41 41
 const { closeCurrentTab } = useTabs();
42 42
 const router = useRouter();
@@ -62,7 +62,3 @@ useEventListener('message', messageHandler);
62 62
     <iframe :src="url" class="size-full"></iframe>
63 63
   </div>
64 64
 </template>
65
-
66
-
67
-
68
-