perf:复制变量不继承折叠状态

This commit is contained in:
zyh
2022-07-01 15:52:39 +08:00
parent 280025f090
commit c6b113fc8c

View File

@@ -457,9 +457,10 @@ export default {
copyVariable (item) {
const temp = JSON.parse(JSON.stringify(item))
temp.name = temp.name ? temp.name + '_copy' : ''
temp.collapse = false
this.editPanel.param.variables.push(temp)
},
// 删除复制变量
// 删除变量
removeVariable (index) {
this.editPanel.param.variables.splice(index, 1)
},