|
@@ -40,10 +40,21 @@ let tweet_Id = getQueryString('tweet_Id')
|
|
|
let detail = ref(null);
|
|
|
|
|
|
const jumpUserPage = () => {
|
|
|
- setChromeStorage({ groupTabData: JSON.stringify({
|
|
|
- deTabVal: 'deGroupTab'
|
|
|
- })})
|
|
|
- window.open(`https://twitter.com/${detail.value.defaultTwitterAccount}`)
|
|
|
+ getChromeStorage('userInfo', (_userInfo) => {
|
|
|
+ if (!_userInfo) {
|
|
|
+ chrome.runtime.sendMessage(
|
|
|
+ { actionType: "POPUP_LOGIN", data: "" },
|
|
|
+ (response) => {
|
|
|
+ console.log("res", response);
|
|
|
+ }
|
|
|
+ )
|
|
|
+ } else {
|
|
|
+ setChromeStorage({ groupTabData: JSON.stringify({
|
|
|
+ deTabVal: 'deGroupTab'
|
|
|
+ })})
|
|
|
+ window.open(`https://twitter.com/${detail.value.defaultTwitterAccount}`)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
// 重新绑定
|
|
|
const reSetBindTwtterId = (_params = {}) => {
|