소스 검색

[edit][actionType]

zhangwei 2 년 전
부모
커밋
470ba1fbd9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/entry/content.js

+ 1 - 1
src/entry/content.js

@@ -149,7 +149,7 @@ const oldOnMessageMethod = (res) => {
 
 const newOnMessageMethod = (res) => {
     let { info = {}, data = {} } = res.data
-    switch (key) {
+    switch (info.actionType) {
         case 'IFRAME_DO_TASK_CREATE_TWEET':
             doTask.TwitterApiCreateTweet({ info, data })
             break