Skip to content

Commit c428a78

Browse files
committed
feat: hook up trust network depth view
1 parent ee4390d commit c428a78

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/views/TrustSettings.vue

+9-2
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,22 @@ export default {
5555
name: 'TrustSettings',
5656
components: { TrustList },
5757
beforeRouteEnter(to, from, next) {
58-
next(vm => usersApi.trust.getTrustList()
58+
next(vm => {
59+
usersApi.trust.getTrustList()
5960
.then(d => vm.trustData = d)
6061
.catch(() => {})
61-
)
62+
usersApi.trust.getTrustTree()
63+
.then(d => vm.trustTree = d)
64+
.catch(() => {})
65+
})
6266
},
6367
beforeRouteUpdate(to, from, next) {
6468
usersApi.trust.getTrustList()
6569
.then(d => this.trustData = d)
6670
.catch(() => {})
71+
usersApi.trust.getTrustTree()
72+
.then(d => this.trustTree = d)
73+
.catch(() => {})
6774
next()
6875
},
6976
setup() {

0 commit comments

Comments
 (0)