@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.
- package/dist/project_gateway.js +2 -1
- package/package.json +1 -1
- package/project_gateway.ts +2 -1
package/dist/project_gateway.js
CHANGED
|
@@ -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
package/project_gateway.ts
CHANGED
|
@@ -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
|
}
|