如果返回是 url 也尝试读取

This commit is contained in:
2betop 2020-04-30 14:21:00 +08:00
parent 58bb7bfeb7
commit f226fc2444
1 changed files with 1 additions and 1 deletions

View File

@ -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);