diff --git a/src/components/assets/card.vue b/src/components/assets/card.vue index ab6e220..eadd78a 100644 --- a/src/components/assets/card.vue +++ b/src/components/assets/card.vue @@ -49,14 +49,14 @@ const props = defineProps({ const buyDialogVisible = ref(false) const buyDataArr = ref([]) - +const currency = import.meta.env.VUE_APP_MARKET_CURRENCY // 出售NFT const sellNft = async (val) => { const data = { // import.meta.env.VUE_APP_PASSPORT_MARKET_ADDRESS contractAddress: val.contract_address, tokenId: val.token_id, - currencyAddress: val.owner_address, + currencyAddress: currency, currencyAmount: '1000000000000000000' } // buyDataArr.value.push(val) diff --git a/src/wallet/passPort.js b/src/wallet/passPort.js index a5183c3..521a951 100644 --- a/src/wallet/passPort.js +++ b/src/wallet/passPort.js @@ -27,7 +27,9 @@ class LPassportWallet { disableBlockedPopupOverlay: false, // Set to true to disable the blocked pop-up overlay } }); - this.passportInstance.loginCallback(); + this.passportInstance.loginCallback().then(()=>{}).catch(err=>{ + console.log(err.message) + }) this.client = new orderbook.Orderbook({ baseConfig }); } async initWidget() {