feat:添加接口签名
This commit is contained in:
21
README.md
21
README.md
@@ -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;
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user