forked from p96170835/amis
如果返回是 url 也尝试读取
This commit is contained in:
parent
58bb7bfeb7
commit
f226fc2444
|
@ -181,7 +181,7 @@ export default class RichTextControl extends React.Component<
|
|||
method: 'post',
|
||||
});
|
||||
if (response.ok) {
|
||||
ok(response.data?.link || response.data?.value || (response as any).link);
|
||||
ok(response.data?.link || response.data?.url || response.data?.value || (response as any).link);
|
||||
}
|
||||
} catch (e) {
|
||||
fail(e);
|
||||
|
|
Loading…
Reference in New Issue