UNPKG

ttk-app-core

Version:

@ttk/recat enterprise develop framework

25 lines (24 loc) 704 B
import webapi from "./webapi"; export function showStateAction(reduce, gf, data) { return async (dispatch, getState) => { reduce("showState", data); }; } export function getAccountList(reduce, gf, data) { return async (dispatch, getState) => { const res = await webapi.accountList(); reduce("accountList", res.items); }; } export function getAccountNum(reduce, gf, data) { return async (dispatch, getState) => { const res = await webapi.accountData(data); reduce("accountNum", res.items); }; } export function getAccountImg(reduce, gf, data) { return async (dispatch, getState) => { const res = await webapi.accountImg(); reduce("accountImg", res.items); }; }