Commit 015bfa57 by 唐玉峰

.

parent 9d59a23d
...@@ -78,11 +78,13 @@ axios.interceptors.response.use( ...@@ -78,11 +78,13 @@ axios.interceptors.response.use(
); );
export default { export default {
post(url, params) { post(url, params, obj) {
loadingInstance = Vue.prototype.$loading(loadingOption); loadingInstance = Vue.prototype.$loading(loadingOption);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.post(domain + url, params) .post(domain + url, params, {
...obj,
})
.then((res) => { .then((res) => {
if (res.status !== 200) { if (res.status !== 200) {
errorMsg(res.data); errorMsg(res.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment