UNPKG

@aliedu/app-self-check

Version:

应用自检模块

55 lines (53 loc) 1.61 kB
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; import _regeneratorRuntime from "@babel/runtime/regenerator"; var initState = { isNext: true }; export default { state: initState, reducers: { changeNextStatu: function changeNextStatu(prevState) { prevState.isNext = false; }, nextStatuFalse: function nextStatuFalse(prevState) { prevState.isNext = true; }, resetStatus: function resetStatus() { return initState; } }, effects: function effects(dispatch) { return { previous: function previous() { return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() { return _regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: dispatch.IndexModel.lastStep(); case 1: case "end": return _context.stop(); } } }, _callee); }))(); }, next: function next() { return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() { return _regeneratorRuntime.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: dispatch.IndexModel.next(); case 1: case "end": return _context2.stop(); } } }, _callee2); }))(); } }; } };