fix: 画中画模式添加片段默认类型修复 + 清理 AssetLibrary 未使用代码
CI/CD Pipeline / Frontend Lint (push) Failing after 22h1m3s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 22h1m3s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1680h35m4s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1680h35m8s
CI/CD Pipeline / Deploy Production (push) Failing after 1680h35m6s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1680h35m8s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1681h6m34s
CI/CD Pipeline / Frontend Lint (push) Failing after 22h1m3s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 22h1m3s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1680h35m4s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1680h35m8s
CI/CD Pipeline / Deploy Production (push) Failing after 1680h35m6s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1680h35m8s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1681h6m34s
- TimelinePanel: handleTogglePicker 打开时根据 currentMode 重置 addType 默认值 - pip 模式默认 pip,voice_over 模式默认 voice - 修复画中画模式下添加片段显示'口播 1'而非'画中画 1'的问题 - AssetLibrary: 删除未使用的 directUploadMutation(遗留代码,上传已由 handleUpload 直接处理) - 修复 TS6133 (unused) + TS2304 (activeLibrary 未定义) 两个编译错误 P0-2 验收发现并修复
This commit is contained in:
@@ -375,6 +375,8 @@ const AssetLibrary: React.FC = () => {
|
||||
/* 状态 */
|
||||
const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set());
|
||||
|
||||
// 大文件直传由 handleUpload 直接调用 uploadAssetDirect 处理
|
||||
|
||||
/* 筛选 */
|
||||
const [searchText, setSearchText] = useState("");
|
||||
const [filterType, setFilterType] = useState<string>("all");
|
||||
|
||||
@@ -102,6 +102,10 @@ const TimelinePanel: React.FC<TimelinePanelProps> = ({
|
||||
|
||||
const handleTogglePicker = () => {
|
||||
if (!showAddPicker) {
|
||||
// 打开面板时,默认选中当前模式下的第一个可用类型
|
||||
const defaultType =
|
||||
currentMode === "pip" ? "pip" : currentMode === "voice_over" ? "voice" : "voice";
|
||||
setAddType(defaultType);
|
||||
updatePickerPosition();
|
||||
}
|
||||
setShowAddPicker((v) => !v);
|
||||
|
||||
Reference in New Issue
Block a user