Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
chore: 微信下 隐藏分享按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Apr 21, 2018
1 parent 3286cde commit 32dad91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/page/article/ArticleCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
<div class="m-box-model m-flex-grow1 m-aln-center m-flex-base0 m-head-top-title">资讯详情</div>
<div class="m-box m-flex-grow1 m-aln-center m-flex-base0 m-justify-end">
<svg class='m-style-svg m-svg-def'>
<svg v-if="!isWechat" class='m-style-svg m-svg-def'>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#base-share"></use>
</svg>
</div>
Expand Down Expand Up @@ -89,6 +89,11 @@ export default {
this.$router.go(-1);
}
},
computed() {
isWechat() {
return this.$store.state.BROWSER.isWechat;
}
}
mounted() {
this.headroom = new HeadRoom(this.$refs.head, {
tolerance: 5,
Expand Down

0 comments on commit 32dad91

Please sign in to comment.