@myun/gimi-chat 0.9.67 → 0.9.68

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.
@@ -92,14 +92,9 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
92
92
  curPlayer === null || curPlayer === void 0 || curPlayer.pause();
93
93
  }
94
94
  setShowPanel(false);
95
- // 资讯溯源:有权益直接跳转资讯详情,无权益则弹试看弹框
96
- if (type === 'information' && trace.hasEntitlement) {
97
- window.open("/news-list/new-information/".concat(trace.informationId, "?packageId=").concat(trace.packageId));
98
- return;
99
- }
100
95
  setCurTrace(trace);
101
96
  setTryWatchVisible(true);
102
- }, [type, curPlayer, setCurTrace]);
97
+ }, [setCurTrace]);
103
98
  var hoverPanelContent = useMemo(function () {
104
99
  if (isLoading) return /*#__PURE__*/React.createElement("div", {
105
100
  style: {
@@ -337,7 +337,7 @@ var TryWatch = function TryWatch(_ref7) {
337
337
  className: styles.tryFullBtnContainer
338
338
  }, /*#__PURE__*/React.createElement("div", {
339
339
  className: styles.tips
340
- }, t(type === 'information' ? 'trace.tryFullTipsNoEntitlement' : 'trace.tryFullTips')), type !== 'information' && /*#__PURE__*/React.createElement(Button, {
340
+ }, t('trace.tryFullTips')), /*#__PURE__*/React.createElement(Button, {
341
341
  className: styles.tryFullBtn,
342
342
  onClick: handleFull
343
343
  }, t('trace.tryFull')))));