Open
Conversation
- 在useSceneGenerator中引入 regenerateScene 函数,实现对已完成场景的内容重新生成 - 优化generateRemaining函数,加入生成锁,避免并发冲突,确保生成过程有序执行 - 在ClassroomDetailPage逻辑中引用并传递 regenerateScene 以支持界面调用 - 在Stage组件及SceneSidebar中添加重新生成按钮和相关回调支持 - 实现重新生成流程的状态管理,显示加载动画,保证用户体验 - 增加本地状态和全局状态联合判断场景是否处于重新生成中,控制按钮禁用和动画 - 补充多语言文案,支持重新生成场景按钮的描述文本展示
# Conflicts: # lib/i18n/generation.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
新增单个场景的重新生成功能
Related Issues
Related to #330
Changes
Type of Change
Verification
Steps to reproduce / test
部署代码,在场景新增时点击“重新生成场景”按钮
预期结果:在场景新增完成后才会加载重新生成场景
在场景新增完成后点击“重新生成场景”按钮
预期结果:立刻加载希望重新生成的场景
在场景新增时连续多次点击“重新生成场景”按钮
预期结果:在场景新增完成后,会按照点击顺序依次加载想要重新生成的场景
What you personally verified
部署代码,在场景新增时点击“重新生成场景”按钮
在场景新增完成后点击“重新生成场景”按钮
在场景新增时连续多次点击“重新生成场景”按钮
Evidence
pnpm check && pnpm lint && npx tsc --noEmit)Checklist