|  | @@ -56,6 +56,7 @@ const isShare = ref(false);
 | 
	
		
			
				|  |  |  const isLoading = ref(true);
 | 
	
		
			
				|  |  |  const isShowGuide = ref(false);
 | 
	
		
			
				|  |  |  const nftProjectId = ref('');
 | 
	
		
			
				|  |  | +const nftAccount = ref('');
 | 
	
		
			
				|  |  |  let tweetId = ref('');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const getSaleInfo = () => {
 | 
	
	
		
			
				|  | @@ -89,6 +90,7 @@ const getSaleData = (projectId) => {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const getSaleProjectInfo = (account) => {
 | 
	
		
			
				|  |  | +    nftAccount.value = account;
 | 
	
		
			
				|  |  |      getTwitterSaleNftProjectInfo({
 | 
	
		
			
				|  |  |          params: {
 | 
	
		
			
				|  |  |              twitterAccount: account
 | 
	
	
		
			
				|  | @@ -125,7 +127,7 @@ const share = () => {
 | 
	
		
			
				|  |  |              tagSearch = `${btoa(tagArr[0])}`
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          let url = pageUrl + `/nft/${saleData.value.nftProjectId}/${tagSearch}`
 | 
	
		
			
				|  |  | -        let content = `#DNFT\r\r${url}`
 | 
	
		
			
				|  |  | +        let content = `${url} #DNFT \r\r `
 | 
	
		
			
				|  |  |          chrome.tabs.getCurrent((tab) => {
 | 
	
		
			
				|  |  |              chrome.tabs.sendMessage(tab.id, { actionType: "IFRAME_TWITTER_PUBLISH", publishRes: { srcContent: content }  });
 | 
	
		
			
				|  |  |          });
 | 
	
	
		
			
				|  | @@ -193,6 +195,22 @@ const msgListener = (req, sender, sendResponse) => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  onMounted(() => {
 | 
	
		
			
				|  |  |      onRuntimeMsg();
 | 
	
		
			
				|  |  | +    // 切换用户
 | 
	
		
			
				|  |  | +    chrome.tabs.onUpdated.addListener((id, info) => {
 | 
	
		
			
				|  |  | +        if (info.status === "loading" && (info && info.url) && !isShare.value) {
 | 
	
		
			
				|  |  | +            let url = new URL(info.url);
 | 
	
		
			
				|  |  | +            let pathname = url.pathname;
 | 
	
		
			
				|  |  | +            let pathArr;
 | 
	
		
			
				|  |  | +            if (pathname) {
 | 
	
		
			
				|  |  | +                pathname = pathname.slice(1);
 | 
	
		
			
				|  |  | +                pathArr = pathname.split('/');
 | 
	
		
			
				|  |  | +                if (nftAccount.value !== pathArr[0]) {
 | 
	
		
			
				|  |  | +                    console.log(3333)
 | 
	
		
			
				|  |  | +                    getSaleInfo()
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  |  })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |