mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
feat(web): custom avatar field in edit-bot modal
User reported that the edit-bot dialog had no avatar option (only create-bot did). Reuses the same CustomAvatarRow component, which auto-loads on mount and PUT/DELETEs on change. Each bot's avatar is bound by botId — independent across bots. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
c562fe05b0
commit
6b60792277
1 file changed
+4
@@ -80,6 +80,10 @@
|
||||
<label>服务器密码(可选)</label>
|
||||
<input v-model="editForm.serverPassword" class="input" type="password" placeholder="服务器有密码时填写" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>自定义头像</label>
|
||||
<CustomAvatarRow :bot-id="editingBot" />
|
||||
</div>
|
||||
<div class="modal-actions">
|
||||
<button class="btn-secondary" @click="editingBot = null">取消</button>
|
||||
<button class="btn-primary" @click="saveEditBot">保存(需重启机器人生效)</button>
|
||||
|
||||
Reference in new issue
Block a user