|
@@ -196,11 +196,9 @@ export default {
|
|
|
this.isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
|
},
|
|
|
setNftInfo() {
|
|
|
- let urlParams = new URL(location.href);
|
|
|
- let searchParams = new URLSearchParams(urlParams.search);
|
|
|
let nftInfo = {
|
|
|
nftProjectId: this.detail.nftProjectId,
|
|
|
- twitterAccount: atob(searchParams.get('twitterAccount') || ''),
|
|
|
+ twitterAccount: atob(this.$route.params.nft || ''),
|
|
|
createTime: Date.now(),
|
|
|
};
|
|
|
Cookies.set('nft_info', JSON.stringify(nftInfo), { expires: 100 });
|