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