Skip to content

Commit

Permalink
Merge pull request #36 from vitelabs/feature/ledger
Browse files Browse the repository at this point in the history
bugfix: /startLogin can not work
  • Loading branch information
osdio committed May 6, 2020
2 parents ce86369 + 1384f50 commit 408e1ba
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion srcPC/pages/start/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ import ellipsisAddr from 'utils/ellipsisAddr.js';
import { getAppLink } from 'utils/getLink';
import openUrl from 'utils/openUrl';
import { getList, deleteOldAcc } from 'wallet';
import * as DnsHost from 'services/dnsHostIP';
import accountItem from './accountItem.vue';
Expand Down Expand Up @@ -204,7 +205,7 @@ export default {
return;
}
if (this.tabName === 'vb') {
this.initVB();
this._initVB();
} else if (this.tabName === 'existingAcc') {
this.init();
}
Expand Down Expand Up @@ -242,6 +243,15 @@ export default {
this.id = id;
this.toggleTab('existingAcc');
},
_initVB() {
if (DnsHost.Server.isReady) {
this.initVB();
} else {
DnsHost.onReady(() => {
this.initVB();
});
}
},
initVB() {
this.vb = initVB();
this.vb.on('connect', () => {
Expand Down

0 comments on commit 408e1ba

Please sign in to comment.