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

Commit 7879561

Browse files
committed
update:请求队列边界修改为10,同时超过10条的请求进入队列
1 parent c6ab346 commit 7879561

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

dist/wxp.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ var RequestMQ = {
105105
map: {},
106106
mq: [],
107107
running: [],
108-
MAX_REQUEST: 5,
108+
MAX_REQUEST: 10,
109109
push: function push(param) {
110110
param.t = +new Date();
111111
while (this.mq.indexOf(param.t) > -1 || this.running.indexOf(param.t) > -1) {
@@ -155,8 +155,6 @@ var CoreClass = function () {
155155
this.$addons = {};
156156

157157
this.$interceptors = {};
158-
159-
this.$pages = {};
160158
}
161159

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

167165
this.$initAPI(wepy, config.noPromiseAPI);
168-
this.$wxapp = getApp();
169166
}
170167
}, {
171168
key: 'use',

dist/wxp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let RequestMQ = {
1212
map: {},
1313
mq: [],
1414
running: [],
15-
MAX_REQUEST: 5,
15+
MAX_REQUEST: 10,
1616
push (param) {
1717
param.t = +new Date();
1818
while ((this.mq.indexOf(param.t) > -1 || this.running.indexOf(param.t) > -1)) {

0 commit comments

Comments
 (0)