This commit is contained in:
zuiidea
2016-11-03 23:39:27 +08:00
parent f4a108cfc1
commit ca92904714
3 changed files with 25 additions and 16 deletions
+9 -1
View File
@@ -47,7 +47,9 @@ export default {
}
}
})
} else {}
} else {
yield put({type: 'hideLoading'})
}
},
*logout({
payload
@@ -93,6 +95,12 @@ export default {
...state,
loading: true
}
},
hideLoading(state) {
return {
...state,
loading: false
}
}
}
}