摘要:
上一篇的文章存在一定的问题, 没有把export接口做成Promise, 所以无法在那个接口完成后继续作一些事, 而且不支持取服务端中设定的文件名, 所以这次的更新做个优化, 解决这些问题! 客户端http.js: import axios from 'axios'; import history 阅读全文
摘要:
客户端利用axios自己封装了一个request,文件名为http.js import axios from 'axios'; import history from './history'; export const baseUrl = '/api'; const request = axios; 阅读全文