|
@@ -78,8 +78,16 @@ export function openWS({ examRecordDataId }) {
|
|
|
shouldReconnect = false;
|
|
|
}
|
|
|
}
|
|
|
- window._hmt.push(["_trackEvent", "websocket", "连接错误后-重新连接"]);
|
|
|
- openWS({ examRecordDataId });
|
|
|
+ if (location.href.includes("/order/")) {
|
|
|
+ window._hmt.push(["_trackEvent", "websocket", "连接错误后-重新连接"]);
|
|
|
+ openWS({ examRecordDataId });
|
|
|
+ } else {
|
|
|
+ window._hmt.push([
|
|
|
+ "_trackEvent",
|
|
|
+ "websocket",
|
|
|
+ "连接错误后-不在正在考试页面-重新连接",
|
|
|
+ ]);
|
|
|
+ }
|
|
|
}, RECONNECT_INTERVAL);
|
|
|
};
|
|
|
}
|