请给问号处添加类型export const getList = = return async dispatch ? = const data = await axiosgethttplocalhost8000channels consolelogdata
export const getList = () => { return async (dispatch: Dispatch) => { const { data } = await axios.get('http://localhost:8000/channels') console.log(data) } }
原文地址: https://www.cveoy.top/t/topic/iPSU 著作权归作者所有。请勿转载和采集!