@apdesign/oms-agent 0.1.0 → 0.1.3
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 +1 -1
- package/dist-lib/oms-agent.cjs +38 -38
- package/dist-lib/oms-agent.cjs.map +1 -1
- package/dist-lib/oms-agent.mjs +1130 -1133
- package/dist-lib/oms-agent.mjs.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ function Layout() {
|
|
|
65
65
|
3. **配置 Agent 后端地址**
|
|
66
66
|
|
|
67
67
|
- 与前端同源时:在构建工具中把 `/api` 代理到 Agent 服务(如 `http://localhost:3030`)即可。
|
|
68
|
-
-
|
|
68
|
+
- 跨域时:在 OMS 入口或 HTML 中设置 `window.__OMS_AGENT_API_BASE__ = 'https://your-agent.example.com'`(可在入口用你的构建环境变量赋值)。
|
|
69
69
|
|
|
70
70
|
## 后端
|
|
71
71
|
|