2020年4月23日
摘要: 上一篇的文章存在一定的问题, 没有把export接口做成Promise, 所以无法在那个接口完成后继续作一些事, 而且不支持取服务端中设定的文件名, 所以这次的更新做个优化, 解决这些问题! 客户端http.js: import axios from 'axios'; import history 阅读全文
posted @ 2020-04-23 20:45 清清飞扬 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 客户端利用axios自己封装了一个request,文件名为http.js import axios from 'axios'; import history from './history'; export const baseUrl = '/api'; const request = axios; 阅读全文
posted @ 2020-04-23 00:05 清清飞扬 阅读(1966) 评论(0) 推荐(0) 编辑