-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #420 (cherry picked from commit a9270f210c691eda78b827631bc53c6d1f76a9de)
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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, | ||
}), | ||
|
@@ -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 () { | ||
|