mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
Sercvie 的 reload 不能再加 initFetch 判断
This commit is contained in:
parent
93e7440a94
commit
651b29f605
@ -128,14 +128,14 @@ export default class Service extends React.Component<ServiceProps> {
|
||||
|
||||
clearTimeout(this.timer);
|
||||
|
||||
if (isEffectiveApi(schemaApi, store.data, initFetchSchema)) {
|
||||
if (isEffectiveApi(schemaApi, store.data)) {
|
||||
store.fetchSchema(schemaApi, store.data, {
|
||||
successMessage: fetchSuccess,
|
||||
errorMessage: fetchFailed
|
||||
}).then(this.initInterval);
|
||||
}
|
||||
|
||||
if (isEffectiveApi(api, store.data, initFetch, initFetchOn)) {
|
||||
if (isEffectiveApi(api, store.data)) {
|
||||
store
|
||||
.fetchData(api, store.data, {
|
||||
silent,
|
||||
|
Loading…
Reference in New Issue
Block a user