commit
92c1162255
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
// https://github.com/ElemeFE/element/blob/dev/packages/upload/src/ajax.js
|
// https://github.com/ElemeFE/element/blob/dev/packages/upload/src/ajax.js
|
||||||
|
|
||||||
function getError(action, option, xhr) {
|
function getError(action, option, xhr) {
|
||||||
const msg = `fail to post ${action} ${xhr.status}'`;
|
const msg = `fail to post ${action} ${xhr.status}`;
|
||||||
const err = new Error(msg);
|
const err = new Error(msg);
|
||||||
err.status = xhr.status;
|
err.status = xhr.status;
|
||||||
err.method = 'post';
|
err.method = 'post';
|
||||||
|
|
Loading…
Add table
Reference in a new issue