File tree Expand file tree Collapse file tree 3 files changed +17
-23
lines changed
Expand file tree Collapse file tree 3 files changed +17
-23
lines changed Original file line number Diff line number Diff line change 8888 </div >
8989 </li >
9090 </ul >
91-
91+
9292 <el-button
9393 v-else
9494 @click =" login"
@@ -163,4 +163,4 @@ export default {
163163.user-name :hover {
164164 text-decoration : none ;
165165}
166- </style >
166+ </style >
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ export default {
210210 topicApi
211211 .createTopics (data)
212212 .then ((response ) => {
213- const { code , data , message } = response .data ;
213+ const { code , message } = response .data ;
214214 if (code == 200 ) {
215215 ElMessage (" 评论成功" );
216216 this .getTopcs (this .articleId );
@@ -219,7 +219,6 @@ export default {
219219 }
220220 })
221221 .catch ((error ) => {
222- console .log (error)
223222 ElMessage (" 失败" );
224223 });
225224 }
@@ -244,9 +243,6 @@ export default {
244243 this .article = data;
245244 this .loading = true ;
246245 })
247- .catch ((error ) => {
248- console .log (error);
249- });
250246 },
251247 getTopcs (id ) {
252248 this .$store .dispatch (" getTopicsList" , id);
@@ -265,7 +261,6 @@ export default {
265261 color : rgba (0 , 0 , 0 , 0.87 );
266262 font-weight : 700 ;
267263 }
268-
269264 .time {
270265 color : #a5a5a5 !important ;
271266 font-size : 0.8em ;
@@ -274,14 +269,13 @@ export default {
274269}
275270.review {
276271 width : 560px ;
277-
278272 text-align : left ;
279273 border : 1px dashed rgb (204 , 204 , 204 );
280274 border-radius : 6px ;
281275 padding : 5px 5px 5px 5px ;
282276 display : inline-block ;
283277 * display : inline ;
284278 * zoom : 1 ;
285- margin-left : 105 px ;
279+ margin-left : 95 px ;
286280}
287281 </style >
Original file line number Diff line number Diff line change 6161 </div>
6262 </div> -->
6363 </div >
64-
64+
6565 </div >
6666</template >
6767<script >
@@ -92,7 +92,7 @@ export default {
9292 },
9393 created (){
9494 this .getList ()
95- this .$store .dispatch (' getTopicsList ' )
95+ this .$store .dispatch (' getHotList ' )
9696 },
9797 methods: {
9898 getList () {
@@ -117,20 +117,20 @@ export default {
117117 this .data .keywords = val
118118 this .getList ()
119119 }
120-
120+
121121 }
122122};
123123 </script >
124124
125125<style lang="scss">
126- @media (min-width : 1200px ) {
127- .container {
128- max-width : 1380px ;
129- }
130- }
131- @media (min-width : 1400px ) {
132- .container {
133- max-width : 1380px ;
134- }
135- }
126+ // @media (min-width: 1200px) {
127+ // .container {
128+ // max-width: 1380px;
129+ // }
130+ // }
131+ // @media (min-width: 1400px) {
132+ // .container {
133+ // max-width: 1380px;
134+ // }
135+ // }
136136 </style >
You can’t perform that action at this time.
0 commit comments