NEZ-2899 fix:Record rules复制Name过长数据时,自动补充错误

This commit is contained in:
zyh
2023-06-21 13:41:13 +08:00
parent 0116f915b4
commit 850f8d0f81

View File

@@ -237,7 +237,7 @@ export default {
this.object = { ...u, name: u.name + copyName, id: '' }
if (this.object.name.length > 64) {
const length = this.object.name.length - 64
this.object.name = u.name.substring(0, u.name.length - length) + '-copy'
this.object.name = u.name.substring(0, u.name.length - length) + copyName
}
this.rightBox.show = true
},