Authored by ityuany

发送信息至服务器

@@ -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() {
@@ -207,7 +207,6 @@ export default { @@ -207,7 +207,6 @@ export default {
207 transition: height 250ms cubic-bezier(0.165, 0.84, 0.44, 1); 207 transition: height 250ms cubic-bezier(0.165, 0.84, 0.44, 1);
208 208
209 .context-title { 209 .context-title {
210 - margin-left: 30px;  
211 font-size: 36px; 210 font-size: 36px;
212 color: #222; 211 color: #222;
213 line-height: 56px; 212 line-height: 56px;
@@ -270,7 +270,6 @@ export default { @@ -270,7 +270,6 @@ export default {
270 color: #222; 270 color: #222;
271 line-height: 56px; 271 line-height: 56px;
272 margin-top: 10px; 272 margin-top: 10px;
273 - margin-left: 30px;  
274 margin-bottom: 16px; 273 margin-bottom: 16px;
275 letter-spacing: 0.68px; 274 letter-spacing: 0.68px;
276 font-weight: bolder; 275 font-weight: bolder;