mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
fix api (#1083)
This commit is contained in:
parent
0dedee2338
commit
d90bfbcf6c
@ -148,7 +148,7 @@ import './renderers/Icon';
|
||||
import './renderers/Carousel';
|
||||
import Scoped, {ScopedContext} from './Scoped';
|
||||
|
||||
import {FormItem} from './renderers/Form/Item';
|
||||
import {FormItem, registerFormItem} from './renderers/Form/Item';
|
||||
|
||||
// 兼容旧版本用法
|
||||
import './compat';
|
||||
@ -170,7 +170,7 @@ import {
|
||||
validateObject
|
||||
} from './utils/validations';
|
||||
import {normalizeOptions} from './components/Select';
|
||||
import {OptionsControl} from './renderers/Form/Options';
|
||||
import {OptionsControl, registerOptionsControl} from './renderers/Form/Options';
|
||||
|
||||
import {
|
||||
classnames,
|
||||
@ -209,6 +209,8 @@ export {
|
||||
getRendererByName,
|
||||
registerRenderer,
|
||||
unRegisterRenderer,
|
||||
registerFormItem,
|
||||
registerOptionsControl,
|
||||
resolveRenderer,
|
||||
filterSchema,
|
||||
filterDate,
|
||||
|
@ -177,7 +177,7 @@ function responseAdaptor(ret: fetcherResult) {
|
||||
status: data.status,
|
||||
msg: data.msg,
|
||||
msgTimeout: data.msgTimeout,
|
||||
data: data.data ? data.data : data // 兼容直接返回数据的情况
|
||||
data: !data.data && !data.hasOwnProperty('status') ? data : data.data // 兼容直接返回数据的情况
|
||||
};
|
||||
|
||||
if (payload.status == 422) {
|
||||
|
Loading…
Reference in New Issue
Block a user