mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
This commit is contained in:
parent
7d266c7136
commit
f51ad35809
3 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue