baijunde 1 an în urmă
părinte
comite
22778f4e14
1 a modificat fișierele cu 13 adăugiri și 7 ștergeri
  1. 13 7
      pages/evaluate/evaluate.vue

+ 13 - 7
pages/evaluate/evaluate.vue

@@ -210,17 +210,23 @@
 				this.$http.post('/app/comments/reply',data).then(res =>{
 					console.log(res)
 					if(res.data.code == 200){
-						item.reply = ''
+						// item.reply = ''
 						uni.showToast({
 							icon:'none',
 							title:'回复成功'
 						})
-						this.appraiseList = []
-						let page = {
-							num: 1,
-							size: 10
-						}
-						this.getcommentList(page)
+						this.$router.go(0)
+						// this.appraiseList = []
+						// let page = {
+						// 	num: 1,
+						// 	size: 10
+						// }
+						// this.getcommentList(page)
+					}else{
+						uni.showToast({
+							icon:'none',
+							title:res.message
+						})
 					}