评论跳转

feature/comment-0624-ch
ch 2 years ago
parent cd1032d988
commit 9288f0ac43

@ -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