feat:添加接口签名

This commit is contained in:
2026-04-08 11:26:40 +08:00
parent 8229c2cc67
commit 2d7ea7e5c8
10 changed files with 753 additions and 208 deletions

View File

@@ -27,3 +27,24 @@ npm run dev
```sh
npm run build
```
## 注意事项
1.在本地启动项目时要修改签名的host,在utils/tools.js
```
// 获取host从baseURL或当前域名 本地启动要求host为xsynergy.gxtech.ltd
// let host = 'xsynergy.gxtech.ltd';
let host = '';
if (config.baseURL) {
try {
const urlObj = new URL(config.baseURL);
host = urlObj.host;
} catch (e) {
host = window.location.host;
}
} else {
host = window.location.host;
}
```