Commit cac4f34b by liangzhen

1221

1 parent 83f4732b
...@@ -98,7 +98,7 @@ axios.interceptors.response.use(response => { ...@@ -98,7 +98,7 @@ axios.interceptors.response.use(response => {
console.log('未知错误'); console.log('未知错误');
// Message.error('连接到服务器失败') // Message.error('连接到服务器失败')
} }
return Promise.resolve(err.response); return Promise.reject('err');
}); });
export function get(url, params = {}) { export function get(url, params = {}) {
......
...@@ -827,9 +827,11 @@ export default { ...@@ -827,9 +827,11 @@ export default {
} }
}) })
.catch((error) => { .catch((error) => {
// console.error(error); console.error('error');
this.fileList = [];
this.$refs["upload" + arguments[2].mid].clearFiles();
// this.$message("上传失败"); // this.$message("上传失败");
}); }).finally(() => console.log('Request completed'));;
}, },
handleSuccess(response, file, fileList) { handleSuccess(response, file, fileList) {
// 提交保存成功后清空已上传的文件 // 提交保存成功后清空已上传的文件
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!