Skip to content

Commit

Permalink
支持去掉队列
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Dec 24, 2018
1 parent 1d05f7a commit 9da3b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var originApiMap = {};
var transferToTaskMethod = function (apiMap, apiName) {
originApiMap[apiName] = apiMap[apiName];
apiMap[apiName] = function (params, callback) {
if (params.SkipTask) {
if (params.SkipTask || !this.options.UploadQueueSize) {
originApiMap[apiName].call(this, params, callback);
} else {
this._addTask(apiName, params, callback);
Expand Down

0 comments on commit 9da3b71

Please sign in to comment.