關於ant design pro 2.0實現與服務器進行接口對接

1.設置代理 2.在api裏面添加要請求的接口 3.在modal裏面寫effect調取接口方法 web import { testApi, userApi } from '@/services/api';//testApi就是2步驟裏的請求名稱 export default { namespace: 'testM',//要惟一 state: { list: []
相關文章
相關標籤/搜索