Commit a31be710 by wangshuangqing

完成添加弹层

parent c34cb78f
...@@ -32,7 +32,7 @@ function errorMsg(d) { ...@@ -32,7 +32,7 @@ function errorMsg(d) {
if (d.response) { if (d.response) {
// 请求已发出,但服务器响应的状态码不在 2xx 范围内 // 请求已发出,但服务器响应的状态码不在 2xx 范围内
console.log(d.response.data.message); console.log(d.response);
} }
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.post(domain + url, params, { ...{ headers: createHeader() }, ...option }) .post(domain + url, params, {... { headers: createHeader() }, ...option })
.then((res) => { .then((res) => {
if (res.status !== 200) { if (res.status !== 200) {
errorMsg(res.data); errorMsg(res.data);
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
loadingInstance = Vue.prototype.$loading(loadingOption); loadingInstance = Vue.prototype.$loading(loadingOption);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.get(domain + url, { ...{ headers: createHeader() }, ...option }) .get(domain + url, {... { headers: createHeader() }, ...option })
.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