@witlink/workflow 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.css +1 -1
- package/dist/index.js +6279 -5928
- package/dist/index.umd.cjs +46 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,12 +69,12 @@ export const wfRoutes: RouteRecordRaw[] = [
|
|
|
69
69
|
// vite.config.ts中
|
|
70
70
|
server: {
|
|
71
71
|
proxy: {
|
|
72
|
-
'/
|
|
72
|
+
'/cisapi': {
|
|
73
73
|
target: '当前系统的接口代理地址', //目标url
|
|
74
74
|
changeOrigin: true, //支持跨域
|
|
75
75
|
secure: false, // 跳过 HTTPS 证书检查
|
|
76
76
|
rewrite: (path) =>
|
|
77
|
-
path.replace(new RegExp("^" + '/
|
|
77
|
+
path.replace(new RegExp("^" + '/cisapi'), ""),
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
},
|
|
@@ -82,8 +82,8 @@ export const wfRoutes: RouteRecordRaw[] = [
|
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
84
|
# 配置nginx转发
|
|
85
|
-
location /
|
|
85
|
+
location /cisapi/ {
|
|
86
86
|
proxy_pass https://ip:port/; # 注意结尾的斜杠
|
|
87
|
-
# 请求 /
|
|
87
|
+
# 请求 /cisapi/user 会被转发到 http://ip:port/user
|
|
88
88
|
}
|
|
89
89
|
```
|