diff --git a/backend/main.py b/backend/main.py index e4a5c42..6c49ab8 100644 --- a/backend/main.py +++ b/backend/main.py @@ -588,7 +588,7 @@ async def batch_review(data: BatchReviewSchema, db: Session = Depends(get_db)): # 3. Create Feishu Group module_part = f"-{data.moduleName}" if data.moduleName else "" - group_name = f"用例评审{module_part}-{datetime.datetime.now().strftime('%m%d-%H%M')}" + group_name = f"【D-Case】用例评审{module_part}-{datetime.datetime.now().strftime('%m%d')}" group_resp = feishu.create_group( name=group_name, diff --git a/src/App.tsx b/src/App.tsx index 2e4207e..36d54a7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -32,13 +32,13 @@ import { Search, UploadCloud, LogOut } from 'lucide-react'; const { addToast } = useToastStore(); - useEffect(() => { - // fetchSpaces will internally call fetchData after resolving currentSpaceId - fetchSpaces(); - fetchTasks(); - fetchBugs(); - }, []); - + useEffect(() => { + if (currentUser) { + fetchSpaces(); + fetchTasks(); + fetchBugs(); + } + }, [currentUser]); // Re-fetch data when user manually switches spaces useEffect(() => { if (currentSpaceId) {