fixed the bug where '.' was truncated in the folder project name under the associated folder.

This commit is contained in:
unknown 2024-01-13 09:38:44 +08:00
parent ca43708a22
commit ee94f20392

View File

@ -728,7 +728,8 @@ async function getDirectoryItemList(
}
if (!item) {
item = newItem({ classificationId, type });
item.name = deleteExtname(getFileName(path));
item.name =
type === 0 ? deleteExtname(getFileName(path)) : getFileName(path);
item.data.target = path;
item.data.icon = getFileIcon(path);
}