Skip to content

Commit

Permalink
refactor(SPA): 积分接口变动适应
Browse files Browse the repository at this point in the history
issue #420

(cherry picked from commit a9270f210c691eda78b827631bc53c6d1f76a9de)
  • Loading branch information
mutoe committed Nov 30, 2018
1 parent 1823247 commit 8d5de49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/spa/src/page/PostMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<span>投稿</span>
</div>
<div
v-if="checkin"
v-if="checkinEnable"
key="ico_attendance"
class="m-box-model m-aln-center m-post-menu-item"
@click="showCheckIn"
Expand Down Expand Up @@ -105,6 +105,7 @@ export default {
},
computed: {
...mapState({
checkin: state => state.CONFIG.checkin || { switch: false },
verified: state => state.USER_VERIFY,
newsVerified: state => state.CONFIG['news:contribute'].verified,
}),
Expand All @@ -113,11 +114,10 @@ export default {
},
/**
* 检查后台是否开启签到功能
* @author jsonleex <[email protected]>
* @return {Boolean}
*/
checkin () {
return this.$store.state.CONFIG.checkin || true
checkinEnable () {
return this.checkin.switch
},
},
created () {
Expand Down

0 comments on commit 8d5de49

Please sign in to comment.