移除不允许删除最后一个

This commit is contained in:
mtvpls
2026-02-13 20:11:50 +08:00
parent 04bb7a1ada
commit fc7c5e48c5

View File

@@ -3621,11 +3621,6 @@ const EmbyConfigComponent = ({
// 删除源
const handleDelete = async (source: any) => {
if (sources.length === 1) {
showError('至少需要保留一个Emby源', showAlert);
return;
}
if (!confirm(`确定要删除 "${source.name}" 吗?`)) {
return;
}