mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-05 13:47:45 +08:00
fix: unable to load data from chinaRegion during the first configuation (#2089)
Close T-607
This commit is contained in:
parent
64070b81b9
commit
c240228a69
@ -2,10 +2,9 @@ import { LoadingOutlined } from '@ant-design/icons';
|
|||||||
import { ArrayField } from '@formily/core';
|
import { ArrayField } from '@formily/core';
|
||||||
import { connect, mapProps, mapReadPretty, useField } from '@formily/react';
|
import { connect, mapProps, mapReadPretty, useField } from '@formily/react';
|
||||||
import { toArr } from '@formily/shared';
|
import { toArr } from '@formily/shared';
|
||||||
import { action } from '@formily/reactive';
|
|
||||||
import { Cascader as AntdCascader, Space } from 'antd';
|
import { Cascader as AntdCascader, Space } from 'antd';
|
||||||
import { isBoolean, omit } from 'lodash';
|
import { isBoolean, omit } from 'lodash';
|
||||||
import React, { useState } from 'react';
|
import React from 'react';
|
||||||
import { useRequest } from '../../../api-client';
|
import { useRequest } from '../../../api-client';
|
||||||
import { defaultFieldNames } from './defaultFieldNames';
|
import { defaultFieldNames } from './defaultFieldNames';
|
||||||
import { ReadPretty } from './ReadPretty';
|
import { ReadPretty } from './ReadPretty';
|
||||||
@ -64,7 +63,7 @@ export const Cascader = connect(
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
const handelDropDownVisible = (value) => {
|
const handelDropDownVisible = (value) => {
|
||||||
if (value && !field.dataSource) {
|
if (value && !field.dataSource.length) {
|
||||||
run();
|
run();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user