...
|
...
|
@@ -4,6 +4,7 @@ import {createNamespacedHelpers} from 'vuex'; |
|
|
import YAS from 'utils/yas-constants';
|
|
|
|
|
|
const {mapActions: articleMapActions, mapMutations: articleMapMutations, mapState: articleMapState} = createNamespacedHelpers('article');
|
|
|
const {mapActions: commentMapActions} = createNamespacedHelpers('comment');
|
|
|
|
|
|
export default {
|
|
|
name: 'CommentPlaceholder',
|
...
|
...
|
@@ -45,6 +46,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
...commentMapActions(['postComment']),
|
|
|
...articleMapActions(['fetchArticleUpdate']),
|
|
|
...articleMapMutations(['UPDATE_ARTICLE_COMMENT_COUNT', 'INIT_COMENT_INPUT']),
|
|
|
async openComentInput() {
|
...
|
...
|
|