@kaiyinchem/ky-uniui 1.0.20 → 1.0.22
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-btn.vue +1 -1
- package/components/ky-fetch.vue +5 -2
- package/package.json +1 -1
package/components/ky-btn.vue
CHANGED
package/components/ky-fetch.vue
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
api: {
|
|
53
53
|
type: String,
|
|
54
54
|
default: '',
|
|
55
|
-
required:
|
|
55
|
+
required: false,
|
|
56
56
|
},
|
|
57
57
|
// status 1:请求成功, -1:暂无数据, -2:请求失败, -3: 无网络
|
|
58
58
|
status: {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
mounted() {
|
|
124
|
-
if (!this.manual) {
|
|
124
|
+
if (!this.manual || !this.api) {
|
|
125
125
|
this.init()
|
|
126
126
|
}
|
|
127
127
|
this.msg = this.errMsg
|
|
@@ -167,6 +167,9 @@
|
|
|
167
167
|
this.filter = obj
|
|
168
168
|
},
|
|
169
169
|
async getList(noReload) {
|
|
170
|
+
if (!this.api) {
|
|
171
|
+
return
|
|
172
|
+
}
|
|
170
173
|
this.loading = true
|
|
171
174
|
this.setFilters(this.condition)
|
|
172
175
|
let rows = []
|