mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
parent
40c9592c9c
commit
58bb8d6466
@ -289,8 +289,10 @@ export const CRUDStore = ServiceStore.named('CRUDStore')
|
||||
items = result.items || result.rows;
|
||||
}
|
||||
|
||||
// 如果不按照 items 格式返回,就拿第一个数组当成 items
|
||||
if (!Array.isArray(items)) {
|
||||
if (items == null) {
|
||||
items = [];
|
||||
} else if (!Array.isArray(items)) {
|
||||
// 如果不按照 items 格式返回,就拿第一个数组当成 items
|
||||
for (const key of Object.keys(result)) {
|
||||
if (result.hasOwnProperty(key) && Array.isArray(result[key])) {
|
||||
items = result[key];
|
||||
|
Loading…
Reference in New Issue
Block a user