From 010550f13e173b1c7b63a631682f7eaf660db927 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E9=80=9Alisting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/assets/card.vue | 4 ++-- src/wallet/passPort.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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() {