浏览代码

[edit] fix

wenliming 2 年之前
父节点
当前提交
e1a859f109
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/logic/content/twitter.js

+ 4 - 3
src/logic/content/twitter.js

@@ -1991,9 +1991,10 @@ export const loginSuccessHandle = () => {
     })
 }
 
-export const setGroupInfo = (params) => {
-    tweetAccountBindGroupInfo.groupInfo = params.data;
-    if(!params.data.nftGroupId) {
+export const setGroupInfo = (params = {}) => {
+    console.log('params', params)
+    tweetAccountBindGroupInfo.groupInfo = params;
+    if(!params.nftGroupId) {
         let groupTab = document.querySelector('#de-nav-tab-group');
         if(groupTab) {
             groupTab.style.display = 'none';