Explorar o código

[edit][actionType]

zhangwei %!s(int64=2) %!d(string=hai) anos
pai
achega
470ba1fbd9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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