Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion upload-3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,9 @@ export default {
return;
}
if (this.status === 200 || this.status === 201 || this.staus ===202 ) {
resolve(JSON.parse(this.responseText));
//防止阿里云OSS接口返回为空时报错
let responseText = this.responseText || "{}"
resolve(JSON.parse(responseText));
} else {
reject(this.status);
}
Expand Down