ct-component-plus 0.0.32 → 0.0.33

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ct-component-plus",
3
3
  "private": false,
4
- "version": "0.0.32",
4
+ "version": "0.0.33",
5
5
  "type": "module",
6
6
  "main": "packages/components/index.js",
7
7
  "files": [
@@ -153,11 +153,17 @@ export default {
153
153
  dataP = paramsHandle || dataP;
154
154
  }
155
155
  if (download) {
156
+ dataP.download = true;
156
157
  if (isFunction(props.cbs.doDownload)) {
157
158
  await props.cbs.doDownload(dataP);
158
159
  } else {
159
- await baseDao[downlaodMethod](props.searchApi, dataP);
160
+ try {
161
+ await baseDao[downlaodMethod](props.searchApi, dataP);
162
+ } catch (error) {
163
+ console.error(error);
164
+ }
160
165
  }
166
+ state.pageLoading = false;
161
167
  return;
162
168
  }
163
169
  await baseDao[searchMethod](props.searchApi, dataP)