删除记录,成功的话结果很明显,无需消息提醒

This commit is contained in:
haiyangcui
2020-11-15 09:48:10 +01:00
parent 9b71355803
commit 7441341658
3 changed files with 0 additions and 5 deletions

View File

@@ -812,7 +812,6 @@ export default {
},
removeHistoryItem (e) {
history.remove(e.id).then(res => {
this.$message.success('删除历史记录成功~')
this.getAllhistory()
}).catch(err => {
this.$message.warning('删除历史记录失败, 错误信息: ' + err)

View File

@@ -263,8 +263,6 @@ export default {
recommendation.remove(e.id).then(res => {
if (res) {
this.$message.warning('删除失败')
} else {
this.$message.success('删除成功')
}
this.getRecommendations()
})

View File

@@ -241,8 +241,6 @@ export default {
star.remove(e.id).then(res => {
if (res) {
this.$message.warning('删除失败')
} else {
this.$message.success('删除成功')
}
this.getFavorites()
})