接口返回可能没有 data, 免得报错

This commit is contained in:
2betop 2020-04-17 17:40:32 +08:00
parent c94c6d8f7d
commit aaeb8e1c82
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ export const FormItemStore = types
self.validated = false; // 拉完数据应该需要再校验一下
let options: Array<IOption> =
json.data.options ||
json.data?.options ||
json.data.items ||
json.data.rows ||
json.data ||