Skip to content

Commit f1cae9a

Browse files
author
shengyonggen
committed
修复点击图在非首页情况下,用户情况显示不出来的bug
1 parent 05cc350 commit f1cae9a

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

heatmap.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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sa-sdk-javascript",
3-
"version": "1.9.11",
3+
"version": "1.10.1",
44
"description": "official sensorsdata javascript sdk",
55
"main": "sensorsdata.min.js",
66
"scripts": {

sensorsdata.amd.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.

sensorsdata.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/heatmap.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9209,8 +9209,12 @@ var heatmap_render = {
92099209

92109210
var urlParse = new _.urlParse(sd.para.web_url);
92119211
urlParse._values.Path = '/web-click/users';
9212-
obj.data_user_link = urlParse.getUrl() + '#heat_map_id=' + heat_map_id + '&detail=true&element_selector=' + encodeURIComponent(obj.by_values[0]) + '&page_url=' + encodeURIComponent(location.href);
9213-
9212+
// 信任也不可靠,好难,一定要文字规则吗
9213+
if(me.requestType === 3){
9214+
obj.data_user_link = urlParse.getUrl() + '#heat_map_id=' + heat_map_id + '&detail=true&element_selector=' + encodeURIComponent(obj.by_values[0]) + '&page_url=' + encodeURIComponent(location.href);
9215+
}else{
9216+
obj.data_user_link = urlParse.getUrl() + '#heat_map_id=' + heat_map_id + '&detail=true&element_selector=' + encodeURIComponent(obj.by_values[0]);
9217+
}
92149218
if(String(obj.top_values[0]) === 'null'){
92159219
obj.data_top_value = '没有值';
92169220
} else {

src/sensorsdata.full.amd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var ObjProto = Object.prototype;
145145
var slice = ArrayProto.slice;
146146
var toString = ObjProto.toString;
147147
var hasOwnProperty = ObjProto.hasOwnProperty;
148-
var LIB_VERSION = '1.10.1';
148+
var LIB_VERSION = '1.10.2';
149149

150150
sd.lib_version = LIB_VERSION;
151151

src/sensorsdata.full.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ var ObjProto = Object.prototype;
142142
var slice = ArrayProto.slice;
143143
var toString = ObjProto.toString;
144144
var hasOwnProperty = ObjProto.hasOwnProperty;
145-
var LIB_VERSION = '1.10.1';
145+
var LIB_VERSION = '1.10.2';
146146

147147
sd.lib_version = LIB_VERSION;
148148

version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
var sensorsdata_js_sdk_latest_version = '1.10.1';
1+
var sensorsdata_js_sdk_latest_version = '1.10.2';

0 commit comments

Comments
 (0)