Merge branch 'feature/comment-0624-ch' into msb_test

fix/comment-0701
ch 2 years ago
commit 1f398092d2

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-27 11:46:34 * @Date: 2022-06-27 11:46:34
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-30 20:35:22 * @LastEditTime: 2022-06-30 20:40:54
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -98,7 +98,7 @@ export default {
*/ */
handleSubmitComment(result, idx){ handleSubmitComment(result, idx){
this.$set(this.list, idx, {...this.list[idx],...result}); this.$set(this.list, idx, {...this.list[idx],...result});
if(this.list.findIndex(i => !i.id) > 0){ if(this.list.findIndex(i => !i.id) > -1){
this.$message.success('评论成功~'); this.$message.success('评论成功~');
}else{ }else{
this.$router.replace('/account/comment/success'); this.$router.replace('/account/comment/success');

Loading…
Cancel
Save