LSamien 2 месяцев назад
Родитель
Сommit
ae3f88078d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/client/components/app/AgentIdentityDialog.vue

+ 1 - 1
src/client/components/app/AgentIdentityDialog.vue

@@ -84,7 +84,7 @@ function submit() {
       <div v-if="open && profile" class="identity-layer" @mousedown.self="emit('close')">
         <form class="identity-dialog" @submit.prevent="submit">
           <header><div><small>AGENT 身份</small><h2>编辑 {{ profile.name }}</h2></div><button class="icon-button" type="button" aria-label="关闭" :disabled="busy" @click="emit('close')"><AppIcon name="close" /></button></header>
-          <div class="identity-avatar"><AgentAvatar :name="title || profile.name" :avatar="avatarDataURL || ''" :size="76" /><div><strong>Desktop Bots 头像</strong><small>会压缩为 256 px,并写入 Desktop 原生 Agent 头像;所有设备同步。</small><p><button class="quiet-button" type="button" :disabled="busy" @click="fileInput?.click()"><AppIcon name="image" :size="14" />选择图片</button><button v-if="avatarDataURL" class="quiet-button" type="button" :disabled="busy" @click="avatarDataURL = null; avatarTouched = true">移除</button></p></div><input ref="fileInput" class="sr-only" type="file" accept="image/png,image/jpeg,image/webp" @change="chooseAvatar" /></div>
+          <div class="identity-avatar"><AgentAvatar :name="title || profile.name" :avatar="avatarDataURL || ''" :size="76" /><div><strong>Bots 头像</strong><small>会压缩为 256 px,并写入原生 Agent 头像;所有设备同步。</small><p><button class="quiet-button" type="button" :disabled="busy" @click="fileInput?.click()"><AppIcon name="image" :size="14" />选择图片</button><button v-if="avatarDataURL" class="quiet-button" type="button" :disabled="busy" @click="avatarDataURL = null; avatarTouched = true">移除</button></p></div><input ref="fileInput" class="sr-only" type="file" accept="image/png,image/jpeg,image/webp" @change="chooseAvatar" /></div>
           <label>名称<input v-model="title" :disabled="busy" maxlength="100" autocomplete="off" /></label>
           <p v-if="localError || error" class="identity-error" role="alert">{{ localError || error }}</p>
           <footer><button class="quiet-button" type="button" :disabled="busy" @click="emit('close')">取消</button><button class="primary-button" type="submit" :disabled="busy">{{ busy ? '正在同步…' : '保存并同步' }}</button></footer>