Repository navigation
feat: 换源弹窗支持同时替换歌名与歌手 - #689
Merged
laoshuikaixue merged 3 commits intoNov 28, 2026
Merged
Conversation
✅ Deploy Preview for voice-hub-lhzx ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
- 在 SongSourceReplaceModal 组件中添加 allowReplaceTitleArtist 属性 - 在按钮显示逻辑中根据 allowReplaceTitleArtist 控制显示与禁用状态 - 根据 allowReplaceTitleArtist 和 replaceTitleArtist 共同决定是否替换标题和艺人信息 - 更新 SongManagement 组件使用新的 allowReplaceTitleArtist 属性控制模态框行为
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.
概述
在管理员后台歌曲管理的换源弹窗中新增「同时替换歌名与歌手」开关,允许管理员在替换音源时一并采用搜索结果的歌名与歌手,减少手动修改。开关默认关闭,关闭时行为与原先完全一致。
改动内容
app/components/Admin/SongSourceReplaceModal.vuearia-pressed表达开关语义。flex-wrap,窄屏自动换行,开关居左、操作按钮组居右(ml-auto),适配移动端。apply事件携带选中曲目的title/artist,关闭时传null。resetState)重置开关为关闭。app/components/Admin/SongManagement.vueapplySourceReplacement中仅在有值时覆盖编辑表单的title/artist;沿用原有「先填表单、点保存才落库」机制,服务端换源逻辑未改动。app/utils/locale/zh-CN.ts、app/utils/locale/en-US.tssourceReplace分区新增replaceTitleArtist词条,两词典结构对齐(各 31 键)。行为说明
截图
影响范围
仅涉及管理员后台换源弹窗,不影响用户端投稿、搜索、播放与服务端数据。无新增依赖,无数据库迁移。