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',