fix: Adhoc template clone variable lose

This commit is contained in:
w940853815
2025-06-17 14:33:07 +08:00
committed by w940853815
parent 111957b6e6
commit 8f17fa82a2

View File

@@ -37,7 +37,7 @@ export default {
name: 'Template'
},
cleanFormValue(value) {
const isClone = this?.$route?.query.clone_from !== undefined
const isClone = this?.action === 'clone'
if (isClone) {
value?.variable.map((item) => {
delete item.id