接口返回可能没有 data, 免得报错
This commit is contained in:
parent
c94c6d8f7d
commit
aaeb8e1c82
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue