This commit is contained in:
yanran200730
2022-03-04 15:48:23 +08:00
parent 117153324f
commit d06b22878c

View File

@@ -227,7 +227,7 @@
this.instance.post(this.options.api).then(res => {
if (res.code == 0) {
if (res.data.length) {
if (this.options.type === 'table') {
if (this.options.type === 'table') {
const keys = Object.keys(res.data[0])
const list = res.data
this.options.apiData = keys.map(v => {