fix:修改复制时 metirc 带了id的问题
This commit is contained in:
@@ -883,6 +883,11 @@ export default {
|
|||||||
}
|
}
|
||||||
delete chartParams.panel
|
delete chartParams.panel
|
||||||
delete chartParams.children
|
delete chartParams.children
|
||||||
|
if (chartParams.elements) {
|
||||||
|
chartParams.elements.forEach(item => {
|
||||||
|
delete item.id
|
||||||
|
})
|
||||||
|
}
|
||||||
this.$post('visual/panel/chart', chartParams).then(response => {
|
this.$post('visual/panel/chart', chartParams).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
|
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
|
||||||
|
|||||||
Reference in New Issue
Block a user