kucservice 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10197,12 +10197,13 @@ var common_request_wsClass = /*#__PURE__*/function () {
10197
10197
  _onClose && _onClose(e);
10198
10198
  },
10199
10199
  onMessage: function onMessage(e) {
10200
- if (e.data.indexOf('Back_Login(') === 0) {
10200
+ var data = e.data || e;
10201
+
10202
+ if (data.indexOf('Back_Login(') === 0) {
10201
10203
  // 设置坐席
10202
10204
  _this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName); // 初始化操作
10203
10205
 
10204
- initAction && initAction();
10205
- return;
10206
+ initAction && initAction(); // return
10206
10207
  }
10207
10208
 
10208
10209
  _onMessage && _onMessage(e);
Binary file