|
@@ -4,7 +4,6 @@ import { query } from '../../services/mproduct';
|
|
|
import { pageModel } from '../common';
|
|
|
import { pageSize } from '../../utils/config';
|
|
|
import { checkSearchParams } from '../../utils/utils';
|
|
|
-import { getLocalUser } from '../../utils/helper';
|
|
|
|
|
|
export default modelExtend(pageModel, {
|
|
|
namespace: 'mproduct',
|
|
@@ -28,8 +27,7 @@ export default modelExtend(pageModel, {
|
|
|
effects: {
|
|
|
* query({ payload = {} }, { call, put }) {
|
|
|
yield put({ type: 'changeLoading', payload: { listLoading: true } });
|
|
|
- const { merchantId } = getLocalUser();
|
|
|
- const { data, success } = yield call(query, { ...payload, merchantId });
|
|
|
+ const { data, success } = yield call(query, payload);
|
|
|
if (success) {
|
|
|
yield put({
|
|
|
type: 'querySuccess',
|