mirror of
https://github.com/XZB-1248/Spark
synced 2025-09-26 20:21:11 +08:00
fix: delete is unavailable for folders
This commit is contained in:
@@ -128,7 +128,7 @@ function FileBrowser(props) {
|
||||
{key: 'delete', name: i18n.t('EXPLORER.DELETE')},
|
||||
];
|
||||
if (file.type === 1) {
|
||||
menus.pop();
|
||||
menus.shift();
|
||||
} else if (file.type === 2) {
|
||||
return [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user