@basic-genomics/hivtrace-viz 1.1.2 → 1.1.4

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.
@@ -1303,11 +1303,17 @@
1303
1303
  overlay.innerHTML = `
1304
1304
  <i class="fa fa-exclamation-triangle hivtrace-error-icon"></i>
1305
1305
  <div class="hivtrace-error-message">${message}</div>
1306
- <button class="hivtrace-retry-btn" onclick="location.reload()">重试</button>
1306
+ <button class="hivtrace-retry-btn" onclick="requestRetry()">重试</button>
1307
1307
  `;
1308
1308
  window.parent.postMessage({ type: 'ERROR', message: message }, '*');
1309
1309
  }
1310
1310
 
1311
+ // 请求宿主应用重试
1312
+ function requestRetry() {
1313
+ window.parent.postMessage({ type: 'HIVTRACE_RETRY' }, '*');
1314
+ }
1315
+
1316
+
1311
1317
 
1312
1318
  function in_progress() {
1313
1319
  return $(".progress").length > 0;