Sercvie 的 reload 不能再加 initFetch 判断

This commit is contained in:
liaoxuezhi 2019-07-15 12:16:33 +08:00
parent 93e7440a94
commit 651b29f605

View File

@ -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,