提交 939a001b 编写于 作者: zhujiamin's avatar zhujiamin

解决loading信息报错问题

上级 2918d85d
...@@ -145,7 +145,7 @@ export default class AppMobFileUpload extends Vue { ...@@ -145,7 +145,7 @@ export default class AppMobFileUpload extends Vue {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
} }
} }
Loading.show('上传中');
Axios.post(this.uploadUrl, params, config).then((response: any) => { Axios.post(this.uploadUrl, params, config).then((response: any) => {
Loading.hidden(); Loading.hidden();
if (response && response.data && response.status === 200) { if (response && response.data && response.status === 200) {
...@@ -160,7 +160,7 @@ export default class AppMobFileUpload extends Vue { ...@@ -160,7 +160,7 @@ export default class AppMobFileUpload extends Vue {
this.onError(response, file, this.files); this.onError(response, file, this.files);
} }
}).catch((response: any) => { }).catch((response: any) => {
Loading.hidden();
this.onError(response, file, this.files); this.onError(response, file, this.files);
}); });
} }
......
...@@ -141,7 +141,7 @@ export default class AppMobPicture extends Vue { ...@@ -141,7 +141,7 @@ export default class AppMobPicture extends Vue {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
} }
} }
Loading.show('上传中');
Axios.post(this.uploadUrl, params, config).then((response: any) => { Axios.post(this.uploadUrl, params, config).then((response: any) => {
Loading.hidden(); Loading.hidden();
if (response && response.data && response.status === 200) { if (response && response.data && response.status === 200) {
...@@ -154,7 +154,7 @@ export default class AppMobPicture extends Vue { ...@@ -154,7 +154,7 @@ export default class AppMobPicture extends Vue {
this.onError(response, file, this.files); this.onError(response, file, this.files);
} }
}).catch((response: any) => { }).catch((response: any) => {
Loading.hidden();
this.onError(response, file, this.files); this.onError(response, file, this.files);
}); });
} }
......
...@@ -282,7 +282,7 @@ export default class AppMobRecorder extends Vue { ...@@ -282,7 +282,7 @@ export default class AppMobRecorder extends Vue {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
} }
} }
Loading.show('上传中');
Axios.post(this.uploadUrl, params, config).then((response: any) => { Axios.post(this.uploadUrl, params, config).then((response: any) => {
Loading.hidden(); Loading.hidden();
if (response && response.data && response.status === 200) { if (response && response.data && response.status === 200) {
...@@ -295,7 +295,7 @@ export default class AppMobRecorder extends Vue { ...@@ -295,7 +295,7 @@ export default class AppMobRecorder extends Vue {
this.onError(response, blob, this.files); this.onError(response, blob, this.files);
} }
}).catch((response: any) => { }).catch((response: any) => {
Loading.hidden();
this.onError(response, blob, this.files); this.onError(response, blob, this.files);
}); });
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册