udxcms 1.0.42 → 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-
|
|
4
|
+
* @LastEditTime: 2025-11-14 16:56:19
|
|
5
5
|
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
@@ -188,11 +188,9 @@ export default {
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
watch: {
|
|
191
|
-
|
|
192
|
-
handler: function(
|
|
193
|
-
|
|
194
|
-
this.initActiveUser()
|
|
195
|
-
}
|
|
191
|
+
ethWallet: {
|
|
192
|
+
handler: function(val, oldVal) {
|
|
193
|
+
this.initActiveUser()
|
|
196
194
|
},
|
|
197
195
|
deep: true
|
|
198
196
|
},
|
|
@@ -222,7 +220,7 @@ export default {
|
|
|
222
220
|
},
|
|
223
221
|
methods: {
|
|
224
222
|
initWallet() {
|
|
225
|
-
let walletName = this.account || ''; //this.walletData.getAddress() || ''
|
|
223
|
+
let walletName = this.account || this.ethWallet?.address || ''; //this.walletData.getAddress() || ''
|
|
226
224
|
if (walletName && walletName.length) {
|
|
227
225
|
this.walletAccount = walletName.slice(0, 4) + '******' + walletName.slice(-4, walletName.length)
|
|
228
226
|
} else {
|
|
@@ -290,7 +288,7 @@ export default {
|
|
|
290
288
|
},
|
|
291
289
|
logOut(val) {
|
|
292
290
|
if (val) {
|
|
293
|
-
this.$Powx.toast.hide()
|
|
291
|
+
// this.$Powx.toast.hide()
|
|
294
292
|
this.$store.commit('user/logout')
|
|
295
293
|
this.walletData.set({
|
|
296
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.',
|