local mock data

This commit is contained in:
zuiidea
2016-10-19 15:06:23 +08:00
parent e50cd23c81
commit 9bd3d71ea9
7 changed files with 69 additions and 176 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ export default {
effects: {
*query({ payload }, { call, put }) {
yield put({ type: 'showLoading' })
const { data } = yield call(query, parse(payload))
const data = yield call(query, parse(payload))
console.log("modae",data);
if (data) {
yield put({
type: 'querySuccess',