Vanessa 2026-01-12 20:11:59 +08:00
parent 7d266c7136
commit f51ad35809
3 changed files with 13 additions and 5 deletions

View file

@ -145,8 +145,7 @@ export const renameAsset = (assetPath: string) => {
/// #if !MOBILE
getAllModels().asset.forEach(item => {
if (item.path === assetPath) {
item.path = response.data.newPath;
item.parent.updateTitle(getDisplayName(response.data.newPath));
item.update(response.data.newPath);
}
});
/// #endif