Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed May 23, 2019
1 parent 2471fab commit e6fa883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<span v-if="liveStatus" class="el-icon-ship">{{title}}</span>
<p>{{sign}}</p>
</el-col>
<el-col :span="6" class="hidden-xs-only">
<badge :status="status" v-if="info"></badge>
<el-col :span="6" class="hidden-xs-only" v-loading="!info.uname">
<badge :status="status" v-if="info.uname"></badge>
</el-col>
</el-row>
<div class="hidden-sm-and-up">
Expand Down Expand Up @@ -73,7 +73,7 @@ export default {
return this.info.sign || this.mid
},
lastLive() {
return this.info.lastLive
return this.info.lastLive || {}
},
status: function() {
let object = {
Expand Down
4 changes: 2 additions & 2 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default new Vuex.Store({
let info = { ...state.info }
let face = { ...state.face }
for (let i = 0; i < data.length; i++) {
let mid = data[i].mid
info[data[i].mid] = data[i]
let { mid } = data[i]
info[mid] = data[i]
if (!face[mid]) {
face[mid] = data[i].face
}
Expand Down

0 comments on commit e6fa883

Please sign in to comment.