From 43a2cdd55c3ef74b4e99c7a3c19788661110915c Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Mon, 1 Jul 2024 18:57:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9passpord=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- package.json | 3 ++- src/components/chain/wallet/PassportWallet.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index fbf9c74..d58b58b 100644 --- a/.env.development +++ b/.env.development @@ -4,8 +4,8 @@ VUE_APP_BASE_API2='https://invitation.counterfire.games' VUE_APP_GPAL_API='https://game2006api.cebggame.com/' # VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-8c2FAlWxWAoRITk1v9rH VUE_APP_PASSPORT_PUBLISHABLE_KEY=pk_imapik-test-eRr-kyOKaZ0jIdrvrPCn -VUE_APP_PASSPORT_REDIRECT_URI=http://localhost:4000/marketplace -VUE_APP_PASSPORT_LOGOUT_URI=http://localhost:4000/ +VUE_APP_PASSPORT_REDIRECT_URI=https://market.kingsome.cn +VUE_APP_PASSPORT_LOGOUT_URI=https://market.kingsome.cn VUE_APP_PASSPORT_CLIENT_ID=eTmUah69p7ZdRhRYzBta6lZRKXXeXDYj #VUE_APP_PASSPORT_CLIENT_ID=0FNfXxQywm7wjdbyLTDzWt4txc53yRrT VUE_APP_PASSPORT_MARKET_ADDRESS=0x7d117aA8BD6D31c4fa91722f246388f38ab1942c diff --git a/package.json b/package.json index cd7a563..6f42d1b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "version": "0.0.0", "scripts": { "dev": "vite --host --mode dev", - "build:dev": "vite build --mode dev", + "build:task": "vite build --mode dev", + "build:dev": "vite build --mode development", "build:test": "vite build --mode test", "build:prod": "vite build --mode production" }, diff --git a/src/components/chain/wallet/PassportWallet.js b/src/components/chain/wallet/PassportWallet.js index 34ce607..a5a16dd 100644 --- a/src/components/chain/wallet/PassportWallet.js +++ b/src/components/chain/wallet/PassportWallet.js @@ -19,7 +19,7 @@ export class PassportWallet { this.passportInstance = new passport.Passport({ baseConfig, clientId, // replace with your client ID from Hub - redirectUri, // replace with one of your redirect URIs from Hub + redirectUri: `${redirectUri}/`, // replace with one of your redirect URIs from Hub logoutRedirectUri, // replace with one of your logout URIs from Hub logoutMode: 'silent', audience: 'platform_api',