vue全局封装ajax请求

1、新建一个文件夹,里面放一个api.js文件,里面写上 /* 封装get方法*/ export function get(url, params) { return KaTeX parse error: Expected '}', got 'EOF' at end of input: …常 this.router.push({ path: “/404”, }); }); } /* 封装post方
相关文章
相关标签/搜索