|
|
@@ -1763,11 +1763,11 @@ export default { |
|
|
|
let nowNum = 1, tempName = ""; |
|
|
|
|
|
|
|
//先添加 - 副本字样 再判断是否重复 如果重复就修改版本信息 |
|
|
|
tempName = targetFile.archName + ' - 副本'; |
|
|
|
tempName = targetFile.archName + '-副本'; |
|
|
|
let isExists = this.workFileList.find(file => file.archName === tempName); |
|
|
|
while(isExists) { |
|
|
|
// - 副本存在 -》修改为 -副本(x) 的字样 |
|
|
|
tempName = targetFile.archName + ` - 副本(${ ++ nowNum})`; |
|
|
|
tempName = targetFile.archName + `-副本(${ ++ nowNum})`; |
|
|
|
isExists = this.workFileList.find(file => file.archName === tempName); |
|
|
|
} |
|
|
|
let hour = '0' + new Date().getHours(); |
|
|
|