diff --git a/nkebao/src/components/ContentLibrarySelectionDialog.tsx b/nkebao/src/components/ContentLibrarySelectionDialog.tsx index dcbbc0a1..1da62d47 100644 --- a/nkebao/src/components/ContentLibrarySelectionDialog.tsx +++ b/nkebao/src/components/ContentLibrarySelectionDialog.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, useCallback } from 'react'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; -import { Checkbox } from '@/components/ui/checkbox'; +import { Badge } from '@/components/ui/badge'; import { Search, RefreshCw, Loader2 } from 'lucide-react'; import { fetchContentLibraryList } from '@/api/content'; import { ContentLibrary } from '@/api/content'; @@ -50,7 +50,7 @@ export function ContentLibrarySelectionDialog({ fetchLibraries(); setTempSelected(selectedLibraries); } - }, [open, searchQuery, selectedLibraries, fetchLibraries]); + }, [open, selectedLibraries, fetchLibraries]); const handleRefresh = () => { fetchLibraries(); @@ -86,7 +86,7 @@ export function ContentLibrarySelectionDialog({ return ( - + 选择内容库 @@ -136,17 +136,24 @@ export function ContentLibrarySelectionDialog({ libraries.map((library) => (