Skip to content

Commit 5b31f4d

Browse files
committed
修改了 router 取值
1 parent 15bf741 commit 5b31f4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sensorsdata.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sa.para = require('sensorsdata_conf.js');
1414
/*
1515
if (sa.para.debug_mode) {
1616
sa.para.debug_mode_url = sa.para.server_url.replace(/\/sa$/, '/debug').replace(/(\/sa)(\?[^\/]+)$/, '/debug$2');
17-
}
17+
}router
1818
*/
1919

2020
sa._queue = [];
@@ -27,7 +27,7 @@ var ArrayProto = Array.prototype,
2727
slice = ArrayProto.slice,
2828
toString = ObjProto.toString,
2929
hasOwnProperty = ObjProto.hasOwnProperty,
30-
LIB_VERSION = '0.2',
30+
LIB_VERSION = '0.5',
3131
LIB_NAME = 'MiniProgram';
3232

3333
sa.lib_version = LIB_VERSION;
@@ -740,7 +740,7 @@ function pageOnload(t, n) {
740740
function pageOnshow(t, n) {
741741
var router = typeof this["__route__"] === 'string' ? this["__route__"] : '系统没有取到值';
742742
if (sa.para.onshow){
743-
sa.para.onshow(sa, n, this)
743+
sa.para.onshow(sa, router, this)
744744
}else{
745745
sa.track('$MPViewScreen', {
746746
$url: router

0 commit comments

Comments
 (0)