udxcms 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
return this.symbolConfig.display_name || ''
|
|
45
45
|
},
|
|
46
46
|
chainId() {
|
|
47
|
-
return this.$store.state.trade.tradeChainId
|
|
47
|
+
return this.$store.state.trade.tradeChainId || this.$store.state.chainId || ''
|
|
48
48
|
},
|
|
49
49
|
originChainId() {
|
|
50
50
|
return this.$store.state.chainId // 全局id
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: Sneed
|
|
3
3
|
* @Date: 2020-12-22 21:38:13
|
|
4
|
-
* @LastEditTime: 2025-
|
|
4
|
+
* @LastEditTime: 2025-11-14 17:15:22
|
|
5
5
|
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
@@ -183,10 +183,10 @@ export default {
|
|
|
183
183
|
return true;
|
|
184
184
|
},
|
|
185
185
|
chainId() {
|
|
186
|
-
return this.$store.state.trade && this.$store.state.trade.tradeChainId;
|
|
186
|
+
return this.$store.state.trade && this.$store.state.trade.tradeChainId || this.$store.state.chainId || '';
|
|
187
187
|
},
|
|
188
188
|
account() {
|
|
189
|
-
return this.$store.getters["wallet/account"] || '';
|
|
189
|
+
return this.$store.getters["wallet/account"] || this.ethWallet?.address || '';'';
|
|
190
190
|
},
|
|
191
191
|
walletIcon() {
|
|
192
192
|
return this.$store.getters["wallet/walletIcon"] || window.localStorage.getItem("selectedIcon") || '';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: Sneed
|
|
3
3
|
* @Date: 2021-03-03 17:28:40
|
|
4
|
-
* @LastEditTime: 2025-11-
|
|
4
|
+
* @LastEditTime: 2025-11-14 16:56:19
|
|
5
5
|
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
190
190
|
watch: {
|
|
191
191
|
ethWallet: {
|
|
192
192
|
handler: function(val, oldVal) {
|
|
193
|
-
|
|
193
|
+
this.initActiveUser()
|
|
194
194
|
},
|
|
195
195
|
deep: true
|
|
196
196
|
},
|
|
@@ -220,7 +220,7 @@ export default {
|
|
|
220
220
|
},
|
|
221
221
|
methods: {
|
|
222
222
|
initWallet() {
|
|
223
|
-
let walletName = this.account || ''; //this.walletData.getAddress() || ''
|
|
223
|
+
let walletName = this.account || this.ethWallet?.address || ''; //this.walletData.getAddress() || ''
|
|
224
224
|
if (walletName && walletName.length) {
|
|
225
225
|
this.walletAccount = walletName.slice(0, 4) + '******' + walletName.slice(-4, walletName.length)
|
|
226
226
|
} else {
|
|
@@ -288,7 +288,7 @@ export default {
|
|
|
288
288
|
},
|
|
289
289
|
logOut(val) {
|
|
290
290
|
if (val) {
|
|
291
|
-
this.$Powx.toast.hide()
|
|
291
|
+
// this.$Powx.toast.hide()
|
|
292
292
|
this.$store.commit('user/logout')
|
|
293
293
|
this.walletData.set({
|
|
294
294
|
syncWallet: undefined,
|
package/dist/config/index.js
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-08-02 11:52:46
|
|
6
6
|
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
-
* @LastEditTime: 2025-
|
|
7
|
+
* @LastEditTime: 2025-11-14 15:43:26
|
|
8
8
|
*/
|
|
9
|
+
// const CDNURL = 'https://devnet-cms.parascan.org'
|
|
10
|
+
const CDNURL = 'https://topnerds.org';
|
|
9
11
|
export default {
|
|
10
|
-
sitePath: process.env.VUE_APP_MODE == 'production' ? 'https://djgs8mufg9606.cloudfront.net/' :
|
|
12
|
+
sitePath: process.env.VUE_APP_MODE == 'production' ? 'https://djgs8mufg9606.cloudfront.net/' : `${CDNURL}/`, // site path
|
|
11
13
|
// sitePath: "https://djgs8mufg9606.cloudfront.net/",
|
|
12
|
-
themePath: process.env.VUE_APP_MODE == 'production' ? 'https://djgs8mufg9606.cloudfront.net/config/' :
|
|
14
|
+
themePath: process.env.VUE_APP_MODE == 'production' ? 'https://djgs8mufg9606.cloudfront.net/config/' : `${CDNURL}/config/`,
|
|
13
15
|
siteLogo: 'site/logo',
|
|
14
16
|
timeOut: 30000,
|
|
15
17
|
loginText: 'Session expired, please log in again.',
|