santech-galaxy-component 2.5.21 → 2.5.22

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.
@@ -114347,8 +114347,9 @@ function WebServer(mgr) {
114347
114347
  if (!_this.tryConnect) return;
114348
114348
  const isSecure = window.location.protocol === 'https:';
114349
114349
  const wsProtocol = isSecure ? 'wss://' : 'ws://';
114350
- var con = new WebSocket(wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114351
- console.log("开始连接服务:" + wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114350
+ const host = window.location.hostname; // 包含域名和端口
114351
+ var con = new WebSocket(wsProtocol + host + ':' + mgr.Config.edge.port);
114352
+ console.log("开始连接服务:" + wsProtocol + host + ':' + mgr.Config.edge.port);
114352
114353
 
114353
114354
  // 打开Socket
114354
114355
  con.onopen = function (event) {
@@ -114800,8 +114801,8 @@ function WordPasterManager() {
114800
114801
  dom.find('span[name="setupOk"]').click(function () {
114801
114802
  _this.pluginLoad();
114802
114803
  });
114803
- dom.find("img[name='ok']").attr("src", "../../public/WordPaster/css/ok.png");
114804
- dom.find("img[name='setup']").attr("src", "../../public/WordPaster/css/setup.png");
114804
+ dom.find("img[name='ok']").attr("src", "../../WordPaster/ok.png");
114805
+ dom.find("img[name='setup']").attr("src", "../../WordPaster/setup.png");
114805
114806
  this.ui.dialog.paste = layer.open({
114806
114807
  type: 1,
114807
114808
  title: "安装提示",
package/lib/index.umd.js CHANGED
@@ -114356,8 +114356,9 @@ function WebServer(mgr) {
114356
114356
  if (!_this.tryConnect) return;
114357
114357
  const isSecure = window.location.protocol === 'https:';
114358
114358
  const wsProtocol = isSecure ? 'wss://' : 'ws://';
114359
- var con = new WebSocket(wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114360
- console.log("开始连接服务:" + wsProtocol + '127.0.0.1:' + mgr.Config.edge.port);
114359
+ const host = window.location.hostname; // 包含域名和端口
114360
+ var con = new WebSocket(wsProtocol + host + ':' + mgr.Config.edge.port);
114361
+ console.log("开始连接服务:" + wsProtocol + host + ':' + mgr.Config.edge.port);
114361
114362
 
114362
114363
  // 打开Socket
114363
114364
  con.onopen = function (event) {
@@ -114809,8 +114810,8 @@ function WordPasterManager() {
114809
114810
  dom.find('span[name="setupOk"]').click(function () {
114810
114811
  _this.pluginLoad();
114811
114812
  });
114812
- dom.find("img[name='ok']").attr("src", "../../public/WordPaster/css/ok.png");
114813
- dom.find("img[name='setup']").attr("src", "../../public/WordPaster/css/setup.png");
114813
+ dom.find("img[name='ok']").attr("src", "../../WordPaster/ok.png");
114814
+ dom.find("img[name='setup']").attr("src", "../../WordPaster/setup.png");
114814
114815
  this.ui.dialog.paste = layer.open({
114815
114816
  type: 1,
114816
114817
  title: "安装提示",