Browse Source

[edit] fix

wenliming 2 năm trước cách đây
mục cha
commit
9fda988286
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      src/logic/content/twitter.js
  2. 1 0
      src/view/iframe/red-packet/red-packet.vue

+ 1 - 1
src/logic/content/twitter.js

@@ -1201,7 +1201,7 @@ export function replyHandle(params) {
 }
 
 export function onTweetReplyClick(params) {
-    let iframe = window.parent.document.getElementById(params.postId);
+    let iframe = window.parent.document.getElementById(params.iframeId);
     let replyBtn = iframe.parentNode.parentNode.querySelector('div[data-testid="reply"]') ||
         iframe.parentNode.parentNode.parentNode.querySelector('div[data-testid="reply"]');
     if (replyBtn) {

+ 1 - 0
src/view/iframe/red-packet/red-packet.vue

@@ -680,6 +680,7 @@ async function clickReply(params) {
 
   let replyData = {
     postId: state.postId,
+    iframeId: state.iframeId,
     type: params.type,
     taskLuckdropId: state.detail.taskLuckdropId
   }