Selaa lähdekoodia

[edit][actionType]

zhangwei 2 vuotta sitten
vanhempi
commit
470ba1fbd9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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