mirror of
https://github.com/XZB-1248/Spark
synced 2025-10-13 19:54:25 +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')},
|
{key: 'delete', name: i18n.t('EXPLORER.DELETE')},
|
||||||
];
|
];
|
||||||
if (file.type === 1) {
|
if (file.type === 1) {
|
||||||
menus.pop();
|
menus.shift();
|
||||||
} else if (file.type === 2) {
|
} else if (file.type === 2) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user