mirror of
https://github.com/purocean/yn.git
synced 2026-10-13 07:38:54 +08:00
重命名时候默认选中文件名
This commit is contained in:
@@ -164,7 +164,8 @@ export default {
|
||||
hint: '新的路径',
|
||||
content: '当前路径:' + this.item.path,
|
||||
value: this.item.path,
|
||||
select: [this.item.path.lastIndexOf('/') + 1, this.item.path.length, 'forward']
|
||||
// 默认选中文件名
|
||||
select: [this.item.path.lastIndexOf('/') + 1, this.item.name.lastIndexOf('.') > -1 ? this.item.path.lastIndexOf('.') : this.item.path.length, 'forward']
|
||||
})
|
||||
|
||||
if (!newPath) {
|
||||
|
||||
Reference in New Issue
Block a user