...
|
...
|
@@ -17,6 +17,7 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import version from 'utils/version';
|
|
|
import {createNamespacedHelpers} from 'vuex';
|
|
|
const {mapState: mapArticleState, mapActions: mapArticleActions} = createNamespacedHelpers('article');
|
|
|
const {mapActions: mapUserActions} = createNamespacedHelpers('user');
|
...
|
...
|
@@ -64,8 +65,9 @@ export default { |
|
|
const authorState = this.authorStates[`${article.authorUid}-${article.authorType}`] || article;
|
|
|
|
|
|
this.list[0].hide = authorState.hasAttention !== 'Y';
|
|
|
|
|
|
this.list[2].href = `?openby:yohobuy={"action":"go.editPost","params":{"articleId":"${article.articleId}"}}`;
|
|
|
this.list[2].hide = article.isAuthor !== 'Y';
|
|
|
this.list[2].hide = version(this.$yoho.appVersion, '6.9.5') < 0 || article.isAuthor !== 'Y';
|
|
|
this.list[3].hide = article.isAuthor !== 'Y';
|
|
|
this.list = [...this.list];
|
|
|
|
...
|
...
|
|