From 7879561e390f380faf467448164928880ce14a85 Mon Sep 17 00:00:00 2001 From: bigMeow Date: Thu, 3 May 2018 16:17:24 +0800 Subject: [PATCH] =?UTF-8?q?update:=E8=AF=B7=E6=B1=82=E9=98=9F=E5=88=97?= =?UTF-8?q?=E8=BE=B9=E7=95=8C=E4=BF=AE=E6=94=B9=E4=B8=BA10,=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E8=B6=85=E8=BF=8710=E6=9D=A1=E7=9A=84=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=BF=9B=E5=85=A5=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/wxp.js | 5 +---- dist/wxp.min.js | 2 +- src/core.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dist/wxp.js b/dist/wxp.js index 3d9b2c9..d8c8eb5 100644 --- a/dist/wxp.js +++ b/dist/wxp.js @@ -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) { @@ -155,8 +155,6 @@ var CoreClass = function () { this.$addons = {}; this.$interceptors = {}; - - this.$pages = {}; } _createClass(CoreClass, [{ @@ -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', diff --git a/dist/wxp.min.js b/dist/wxp.min.js index 5c5f9e0..904359b 100644 --- a/dist/wxp.min.js +++ b/dist/wxp.min.js @@ -1 +1 @@ -!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r=function(){function e(e,t){for(var n=0;n-1||this.running.indexOf(e.t)>-1;)e.t+=10*Math.random()>>0;this.mq.push(e.t),this.map[e.t]=e},next:function(){var e=this;if(0!==this.mq.length&&this.running.length1&&void 0!==arguments[1]?arguments[1]:{};this.$initAPI(e,t.noPromiseAPI),this.$wxapp=getApp()}},{key:"use",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1||this.running.indexOf(e.t)>-1;)e.t+=10*Math.random()>>0;this.mq.push(e.t),this.map[e.t]=e},next:function(){var e=this;if(0!==this.mq.length&&this.running.length1&&void 0!==arguments[1]?arguments[1]:{};this.$initAPI(e,t.noPromiseAPI)}},{key:"use",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r -1 || this.running.indexOf(param.t) > -1)) {