overview中删除数据需要刷新列表(确保该模块其他页面也在删除的时候刷新了)

This commit is contained in:
任珮宇 2023-11-17 09:50:51 +08:00
parent 9038fc5116
commit ae1113c3df
2 changed files with 2 additions and 2 deletions

View File

@ -422,7 +422,7 @@ export default {
deleteAction('/sysDatabase/deleteById', { id: _this.currentId }).then((res) => { deleteAction('/sysDatabase/deleteById', { id: _this.currentId }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success('success') _this.$message.success('success')
this.currentId = '' _this.currentId = ''
_this.getSysDatabase() _this.getSysDatabase()
} else { } else {
_this.$message.warning('This operation fails. Contact your system administrator') _this.$message.warning('This operation fails. Contact your system administrator')

View File

@ -364,7 +364,7 @@ export default {
deleteAction('/sysEmail/deleteById', { id: _this.currentId }).then((res) => { deleteAction('/sysEmail/deleteById', { id: _this.currentId }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success('success') _this.$message.success('success')
this.currentId = '' _this.currentId = ''
_this.getSysEmail() _this.getSysEmail()
} else { } else {
_this.$message.warning('This operation fails. Contact your system administrator') _this.$message.warning('This operation fails. Contact your system administrator')