fix: 修复 AssetLibrary 类型不匹配(tagMode/smartView)
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Code Quality (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / PR Build API Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Staging API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 43s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 43s

This commit is contained in:
2026-07-27 13:17:38 +08:00
parent d85b181654
commit e99f80f333
+5 -4
View File
@@ -14,6 +14,7 @@
*/
import React, { useState } from "react"
import type { AssetItem } from "@/pages/assets/types"
import type { SmartViewType } from "@/pages/assets/components/BatchMarkModal"
import { SkeletonCard } from "@/pages/assets/components/AssetSkeleton"
import LibrarySidebar from "@/pages/assets/components/LibrarySidebar"
import AssetFilterBar from "@/pages/assets/components/AssetFilterBar"
@@ -215,8 +216,8 @@ const AssetLibrary: React.FC = () => {
onTagInputChange={setBatchTagInput}
onTagInputKeyDown={handleTagInputKeyDown}
onRemoveTag={removeBatchTag}
tagMode={tagMode as "append" | "replace"}
onTagModeChange={setTagMode as (mode: "append" | "replace") => void}
tagMode={tagMode as "add" | "replace"}
onTagModeChange={setTagMode as (mode: "add" | "replace") => void}
batchLoading={batchLoading}
classifyModalOpen={classifyModalOpen}
onClassifyCancel={() => {
@@ -229,8 +230,8 @@ const AssetLibrary: React.FC = () => {
markModalOpen={markModalOpen}
onMarkCancel={() => setMarkModalOpen(false)}
onMarkOk={handleBatchMark}
batchSmartView={batchSmartView}
onSmartViewChange={setBatchSmartView}
batchSmartView={batchSmartView as SmartViewType}
onSmartViewChange={setBatchSmartView as (val: SmartViewType) => void}
resultDrawerOpen={resultDrawerOpen}
operationTitle={operationTitle}
operationResult={operationResult}