Commit bc44545b authored by ganjingcun's avatar ganjingcun

bug

parent beb22dea
...@@ -178,14 +178,16 @@ ...@@ -178,14 +178,16 @@
rankTable = this.renderRankTable("#athletic_rank"); rankTable = this.renderRankTable("#athletic_rank");
API.getDeckInfo({ name: name, version: version }).then((res) => { API.getDeckInfo({ name: name, version: version }).then((res) => {
this.hasError = false
this.user_info = res.data
this.username = res.data.data.name
if (res.data.code === 404) { if (res.data.code === 404) {
// this.hasError = true
this.isNew = true; this.isNew = true;
this.username = name
} else { } else {
this.isNew = false; this.isNew = false;
this.hasError = false
this.user_info = res.data
this.username = res.data.data.name
var dataPbj = JSON.parse(res.data.data.content) var dataPbj = JSON.parse(res.data.data.content)
this.title = dataPbj.title this.title = dataPbj.title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment