|
@@ -1,6 +1,6 @@
|
|
|
// from: http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/31752/cn_zh/1462870126706/loghub-tracking.js?spm=a2c4g.11186623.2.16.16a65ad1spF4TQ&file=loghub-tracking.js
|
|
|
/* eslint-disable */
|
|
|
-(function(window, document) {
|
|
|
+(function (window, document) {
|
|
|
function createHttpRequest() {
|
|
|
if (window.ActiveXObject) {
|
|
|
return new ActiveXObject("Microsoft.XMLHTTP");
|
|
@@ -21,14 +21,14 @@
|
|
|
this.httpRequest_ = createHttpRequest();
|
|
|
}
|
|
|
AliLogTracker.prototype = {
|
|
|
- push: function(key, value) {
|
|
|
+ push: function (key, value) {
|
|
|
if (!key || !value) {
|
|
|
return;
|
|
|
}
|
|
|
this.params_.push(key);
|
|
|
this.params_.push(value);
|
|
|
},
|
|
|
- logger: async function() {
|
|
|
+ logger: async function () {
|
|
|
var url = this.uri_;
|
|
|
var k = 0;
|
|
|
while (this.params_.length > 0) {
|
|
@@ -61,7 +61,10 @@
|
|
|
);
|
|
|
console.log("Failed log data:", url);
|
|
|
// wzj-modified: 若上传失败,则重新上传本地日志
|
|
|
- if (location.pathname.startsWith("/oe/login")) {
|
|
|
+ if (
|
|
|
+ location.pathname.startsWith("/oe-web/login") ||
|
|
|
+ location.pathname === "/oe-web"
|
|
|
+ ) {
|
|
|
localStorage.setItem("lastLogIndex", 0);
|
|
|
}
|
|
|
}
|