@kaiyinchem/ky-uniui 1.1.2 → 1.1.4
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/components/ky-fetch.vue +6 -1
- package/package.json +1 -1
package/components/ky-fetch.vue
CHANGED
|
@@ -197,6 +197,11 @@
|
|
|
197
197
|
delete params.size
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
if (this.noLoadmore) {
|
|
201
|
+
delete params.page
|
|
202
|
+
delete params.size
|
|
203
|
+
}
|
|
204
|
+
|
|
200
205
|
try {
|
|
201
206
|
const apiUrl = this.api.split('.')
|
|
202
207
|
const res = await this.$api[apiUrl[0]][apiUrl[1]](params)
|
|
@@ -256,7 +261,7 @@
|
|
|
256
261
|
if (e.code === 504) {
|
|
257
262
|
this.loadState = -3
|
|
258
263
|
}
|
|
259
|
-
this.tips = e.msg || this.$t('loadFaild')
|
|
264
|
+
this.tips = e.msg || e.errMsg || this.$t('loadFaild')
|
|
260
265
|
this.msg = this.tips
|
|
261
266
|
this.loadError = true
|
|
262
267
|
this.$emit('error', e)
|