提交 20c1643b authored 作者: vipcxj's avatar vipcxj

fix: DSTable使用queryMeta替换meta

上级 dd6dad7d
...@@ -148,9 +148,9 @@ const modelCreator = () => { ...@@ -148,9 +148,9 @@ const modelCreator = () => {
const name = 'model'; const name = 'model';
const namespace = uniqueId(prefix); const namespace = uniqueId(prefix);
const loadMeta = function* loadMeta({ select, call, put }) { const loadMeta = function* loadMeta({ select, call, put }) {
const { coordinate } = yield select(state => state[namespace]); const { coordinate, params } = yield select(state => state[namespace]);
const api = datasourceApi(coordinate); const api = datasourceApi(coordinate);
const meta = yield call(api.meta); const meta = yield call(api.queryMeta, { params });
yield put({ type: 'applyMeta', payload: meta }); yield put({ type: 'applyMeta', payload: meta });
}; };
const loadData = function* loadData({ select, put, call }) { const loadData = function* loadData({ select, put, call }) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论