Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
update:请求队列边界修改为10,同时超过10条的请求进入队列
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmeow committed May 3, 2018
1 parent c6ab346 commit 7879561
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions dist/wxp.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var RequestMQ = {
map: {},
mq: [],
running: [],
MAX_REQUEST: 5,
MAX_REQUEST: 10,
push: function push(param) {
param.t = +new Date();
while (this.mq.indexOf(param.t) > -1 || this.running.indexOf(param.t) > -1) {
Expand Down Expand Up @@ -155,8 +155,6 @@ var CoreClass = function () {
this.$addons = {};

this.$interceptors = {};

this.$pages = {};
}

_createClass(CoreClass, [{
Expand All @@ -165,7 +163,6 @@ var CoreClass = function () {
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

this.$initAPI(wepy, config.noPromiseAPI);
this.$wxapp = getApp();
}
}, {
key: 'use',
Expand Down
2 changes: 1 addition & 1 deletion dist/wxp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let RequestMQ = {
map: {},
mq: [],
running: [],
MAX_REQUEST: 5,
MAX_REQUEST: 10,
push (param) {
param.t = +new Date();
while ((this.mq.indexOf(param.t) > -1 || this.running.indexOf(param.t) > -1)) {
Expand Down

0 comments on commit 7879561

Please sign in to comment.