|
|
|
@ -298,8 +298,9 @@ async function onSaveRename(item: any) {
@@ -298,8 +298,9 @@ async function onSaveRename(item: any) {
|
|
|
|
|
const find = findItem(item.id) |
|
|
|
|
if (!find.isEdit) return |
|
|
|
|
await nextTick() |
|
|
|
|
debugger |
|
|
|
|
find.isEdit = false |
|
|
|
|
if (!editFileName.value.endsWith('.md')) { |
|
|
|
|
if (find.type === floeType.file && !editFileName.value.endsWith('.md')) { |
|
|
|
|
editFileName.value += '.md' |
|
|
|
|
} |
|
|
|
|
if (find.name !== editFileName.value) { |
|
|
|
|