NEZ-2336 fix:Rcord rules复制规则保存时提示name格式错误
This commit is contained in:
@@ -232,8 +232,9 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
copy (u) {
|
||||
this.object = { ...u, name: u.name + '-copy', id: '' }
|
||||
copy (u, copyParams) {
|
||||
const copyName = this.$loadsh.get(copyParams, 'copyName', '-copy')
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user