Skip to content

Commit 6cfd474

Browse files
committed
修改点击图 pathUrl
1 parent 59f05ea commit 6cfd474

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

sensorsdata.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,11 +2516,17 @@ var heatmap_render = {
25162516

25172517
var urlParse2 = new _.urlParse(sd.para.web_url);
25182518
urlParse2._values.Path = '/api/heat_map/report/path/' + id;
2519+
var urlParse2Value = urlParse2.getUrl();
2520+
if(urlParse2Value.indexOf('?') === -1){
2521+
urlParse2Value = urlParse2Value + '?pathUrl=' + url;
2522+
}else{
2523+
urlParse2Value = urlParse2Value + '&pathUrl=' + url;
2524+
}
25192525

25202526
if(url){
25212527
this.requestType = 3;
25222528
_.ajax({
2523-
url: urlParse2.getUrl() + '?pathUrl=' + url,
2529+
url: urlParse2Value,
25242530
type: 'POST',
25252531
cors: true,
25262532
header: {cors: "true"},

src/sensorsdata.full.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if(typeof JSON!=='object'){JSON={}}(function(){'use strict';var rx_one=/^[\],:{}
8484
, slice = ArrayProto.slice
8585
, toString = ObjProto.toString
8686
, hasOwnProperty = ObjProto.hasOwnProperty
87-
, LIB_VERSION = '1.7.11';
87+
, LIB_VERSION = '1.7.5';
8888

8989
sd.lib_version = LIB_VERSION;
9090

@@ -2590,11 +2590,17 @@ var heatmap_render = {
25902590

25912591
var urlParse2 = new _.urlParse(sd.para.web_url);
25922592
urlParse2._values.Path = '/api/heat_map/report/path/' + id;
2593+
var urlParse2Value = urlParse2.getUrl();
2594+
if(urlParse2Value.indexOf('?') === -1){
2595+
urlParse2Value = urlParse2Value + '?pathUrl=' + url;
2596+
}else{
2597+
urlParse2Value = urlParse2Value + '&pathUrl=' + url;
2598+
}
25932599

25942600
if(url){
25952601
this.requestType = 3;
25962602
_.ajax({
2597-
url: urlParse2.getUrl() + '?pathUrl=' + url,
2603+
url: urlParse2Value,
25982604
type: 'POST',
25992605
cors: true,
26002606
header: {cors: "true"},

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.7.11';
1+
var sensorsdata_js_sdk_latest_version = '1.7.12';

vtrack.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)