udxcms 1.0.40 → 1.0.42
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.
- package/dist/components/basicComponents/UserMenu.vue +23 -9
- package/dist/components/basicComponents/WalletConnected.vue +8 -4
- package/dist/components/businessComponents/NetworkSelect.vue +1 -0
- package/dist/components/businessComponents/Networklist.vue +2 -2
- package/dist/components/h5Components/ChainNetH5Work.vue +3 -2
- package/dist/components/pageComponents/header/header_morse.vue +1 -1
- package/package.json +1 -1
|
@@ -64,6 +64,20 @@ import conf from "../../config/index";
|
|
|
64
64
|
|
|
65
65
|
export default {
|
|
66
66
|
name: "UserMenu",
|
|
67
|
+
props: {
|
|
68
|
+
isLocked: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false,
|
|
71
|
+
},
|
|
72
|
+
accountIsCustody: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false,
|
|
75
|
+
},
|
|
76
|
+
account: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
67
81
|
data() {
|
|
68
82
|
return {
|
|
69
83
|
logOutModalVisible: false,
|
|
@@ -74,17 +88,17 @@ export default {
|
|
|
74
88
|
};
|
|
75
89
|
},
|
|
76
90
|
computed: {
|
|
77
|
-
account() {
|
|
78
|
-
|
|
79
|
-
},
|
|
91
|
+
// account() {
|
|
92
|
+
// return this.$store.getters["wallet/account"] || "";
|
|
93
|
+
// },
|
|
80
94
|
token() {
|
|
81
95
|
return (
|
|
82
96
|
localStorage.getItem("TOKEN") || this.$store.state.user.token
|
|
83
97
|
);
|
|
84
98
|
},
|
|
85
|
-
accountIsCustody() {
|
|
86
|
-
|
|
87
|
-
},
|
|
99
|
+
// accountIsCustody() {
|
|
100
|
+
// return this.$store.getters["wallet/accountIsCustody"];
|
|
101
|
+
// },
|
|
88
102
|
userMenus() {
|
|
89
103
|
return this.$store.state.navigation.user.filter(
|
|
90
104
|
(v) => v.client == "WEB"
|
|
@@ -114,9 +128,9 @@ export default {
|
|
|
114
128
|
let ethWallet = this.$store.state.wallet.ethWallet || {};
|
|
115
129
|
return Object.keys(ethWallet).length > 0;
|
|
116
130
|
},
|
|
117
|
-
isLocked() {
|
|
118
|
-
|
|
119
|
-
},
|
|
131
|
+
// isLocked() {
|
|
132
|
+
// return this.$store.getters["wallet/isLocked"];
|
|
133
|
+
// },
|
|
120
134
|
walletLocked() {
|
|
121
135
|
if (this.accountIsCustody) {
|
|
122
136
|
return false;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
<!-- wallet 菜单 -->
|
|
56
56
|
<div class="menu-dropdown">
|
|
57
|
-
<UserMenu v-if="userMenus.length > 0 || walletType == 'L1' && !l1Login" />
|
|
57
|
+
<UserMenu v-if="userMenus.length > 0 || walletType == 'L1' && !l1Login" :isLocked="isLocked" :accountIsCustody="accountIsCustody" :account="account" />
|
|
58
58
|
<userPanel
|
|
59
59
|
v-else
|
|
60
60
|
v-model="walletMenuVisible"
|
|
@@ -74,6 +74,10 @@ export default {
|
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: false,
|
|
76
76
|
},
|
|
77
|
+
isLocked: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: false,
|
|
80
|
+
},
|
|
77
81
|
},
|
|
78
82
|
computed: {
|
|
79
83
|
btcWallet() {
|
|
@@ -85,9 +89,9 @@ export default {
|
|
|
85
89
|
accountIsCustody() {
|
|
86
90
|
return this.$store.getters["wallet/accountIsCustody"];
|
|
87
91
|
},
|
|
88
|
-
isLocked() {
|
|
89
|
-
|
|
90
|
-
},
|
|
92
|
+
// isLocked() {
|
|
93
|
+
// return this.$store.getters["wallet/isLocked"];
|
|
94
|
+
// },
|
|
91
95
|
|
|
92
96
|
walletIcon() {
|
|
93
97
|
return window.localStorage.getItem("selectedIcon") || "";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-10-26 16:50:22
|
|
6
6
|
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
-
* @LastEditTime: 2025-11-04
|
|
7
|
+
* @LastEditTime: 2025-11-04 17:41:16
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class='network-box' :style="{visibility: chainShow ? 'visible': 'hidden'}">
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
async setChainArrLists() {
|
|
152
|
-
if (!this.layer1NetworkList
|
|
152
|
+
if (!this.layer1NetworkList?.length) {
|
|
153
153
|
await this.$store.dispatch('coin/fetchNetworkList')
|
|
154
154
|
}
|
|
155
155
|
try {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2022-02-10 14:24:36
|
|
6
6
|
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
-
* @LastEditTime: 2025-
|
|
7
|
+
* @LastEditTime: 2025-11-04 17:41:42
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class='rinkeby-box'>
|
|
@@ -41,11 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
computed: {
|
|
43
43
|
layer1NetworkList() {
|
|
44
|
-
return this.$store.getters['wallet/walletNetworks'];
|
|
44
|
+
return this.$store.getters['wallet/walletNetworks'] || [];
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
watch: {
|
|
48
48
|
$route: {
|
|
49
|
+
|
|
49
50
|
handler(val) {
|
|
50
51
|
let routeName = val.name
|
|
51
52
|
this.chainShow = this.chainShowArr.indexOf(routeName) == -1
|