@cpzxrobot/sdk 1.2.84 → 1.2.85

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.
@@ -122,7 +122,8 @@ class ProjectGateway extends Object {
122
122
  download: (args) => {
123
123
  return this.context.ready.then((axios) => {
124
124
  return axios.getAndPreview(`/api/v2/coremde-sale/project/document/download`, {
125
- params: args
125
+ params: args,
126
+ fileName: args.fileName || "项目文档",
126
127
  });
127
128
  });
128
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.84",
3
+ "version": "1.2.85",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -166,7 +166,8 @@ export class ProjectGateway extends Object {
166
166
  download: (args: { documentId: number, fileName?: string, preview?: boolean }) => {
167
167
  return this.context.ready.then((axios) => {
168
168
  return axios.getAndPreview(`/api/v2/coremde-sale/project/document/download`, {
169
- params: args
169
+ params: args,
170
+ fileName: args.fileName || "项目文档",
170
171
  });
171
172
  });
172
173
  }