Skip to content

Commit

Permalink
account validate
Browse files Browse the repository at this point in the history
  • Loading branch information
DARREN-ZHANG committed Sep 24, 2019
1 parent 719403a commit bfe6e0f
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
<v-card-actions class="pa-5">
<v-spacer></v-spacer>
<v-btn
:disabled = !isAccountValid
color="primary"
block
@click="createAccount"
Expand Down Expand Up @@ -414,19 +413,19 @@
this.isAccountChecked = false;
this.name = (this.name || "").slice(0, 64);
try {
// const data = {"method": "call", "params": [0, 'get_full_accounts', [this.name]], "id": 1};
// const result = await axios.post(config.chain, data);
// console.log("TCL: result", result)
const data = {"method": "call", "params": [0, 'get_full_accounts', [this.name]], "id": 1};
const result = await axios.post(config.chain, data);
console.log("TCL: result", result)
// if(result.data.length === 0){
// this.isAccountNew = true;
// }
this.isAccountNew = true;
this.isAccountChecked = true;
if(result.data.length === 0){
this.isAccountNew = true;
}
// this.isAccountNew = true;
// this.isAccountChecked = true;
// this.$refs.form.validate();
} catch (e) {
this.isAccountNew = true;
this.isAccountChecked = true;
// this.isAccountNew = true;
// this.isAccountChecked = true;
// this.$refs.form.validate();
}
}, 200),
Expand Down

0 comments on commit bfe6e0f

Please sign in to comment.