fix: 修改 system 回显错误的问题

This commit is contained in:
zhangyu
2021-12-23 16:27:05 +08:00
parent 79d6acbf05
commit b95c4c792d
6 changed files with 7 additions and 9 deletions

View File

@@ -194,7 +194,7 @@ export default {
this.$put('visual/panel/chart', params).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
this.$emit('on-create-success')
this.$emit('on-create-success', { id: this.panelId, name: this.panelName })
this.esc(true)
} else {
this.$message.error(response.msg)
@@ -204,7 +204,7 @@ export default {
this.$post('visual/panel/chart', params).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
this.$emit('on-create-success')
this.$emit('on-create-success', { id: this.panelId, name: this.panelName })
this.esc(true)
} else {
this.$message.error(response.msg)