mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
Merge pull request #2867 from xinnan-tech/update-style
style: 优化部分样式,保持一致性
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
</div>
|
||||
|
||||
<img loading="lazy" alt="" src="@/assets/home/avatar.png" class="avatar-img" @click="handleAvatarClick" />
|
||||
<span class="el-dropdown-link" @click="handleAvatarClick">
|
||||
<span class="el-user-dropdown" @click="handleAvatarClick">
|
||||
{{ userInfo.username || "加载中..." }}
|
||||
<i class="el-icon-arrow-down el-icon--right" :class="{ 'rotate-down': userMenuVisible }"></i>
|
||||
</span>
|
||||
@@ -668,6 +668,7 @@ export default {
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 120px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.logo-img {
|
||||
@@ -845,6 +846,9 @@ export default {
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.el-user-dropdown {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 导航文本样式 - 支持中英文换行 */
|
||||
.nav-text {
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export default {
|
||||
'voiceClone.training': 'Training',
|
||||
'voiceClone.trainSuccess': 'Training erfolgreich',
|
||||
'voiceClone.trainFailed': 'Training fehlgeschlagen',
|
||||
'voiceClone.itemsPerPage': '{items} Einträge pro Seite',
|
||||
'voiceClone.itemsPerPage': '{items} Einträge/Seite',
|
||||
'voiceClone.firstPage': 'Erste Seite',
|
||||
'voiceClone.prevPage': 'Vorherige Seite',
|
||||
'voiceClone.nextPage': 'Nächste Seite',
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export default {
|
||||
'voiceClone.training': 'Training',
|
||||
'voiceClone.trainSuccess': 'Training successful',
|
||||
'voiceClone.trainFailed': 'Training failed',
|
||||
'voiceClone.itemsPerPage': '{items} items per page',
|
||||
'voiceClone.itemsPerPage': '{items} items/page',
|
||||
'voiceClone.firstPage': 'First Page',
|
||||
'voiceClone.prevPage': 'Previous Page',
|
||||
'voiceClone.nextPage': 'Next Page',
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export default {
|
||||
'voiceClone.training': 'Đang huấn luyện',
|
||||
'voiceClone.trainSuccess': 'Huấn luyện thành công',
|
||||
'voiceClone.trainFailed': 'Huấn luyện thất bại',
|
||||
'voiceClone.itemsPerPage': '{items} mục mỗi trang',
|
||||
'voiceClone.itemsPerPage': '{items} mục/trang',
|
||||
'voiceClone.firstPage': 'Trang đầu',
|
||||
'voiceClone.prevPage': 'Trang trước',
|
||||
'voiceClone.nextPage': 'Trang sau',
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export default {
|
||||
'voiceClone.training': '训练中',
|
||||
'voiceClone.trainSuccess': '训练成功',
|
||||
'voiceClone.trainFailed': '训练失败',
|
||||
'voiceClone.itemsPerPage': '每页 {items} 条',
|
||||
'voiceClone.itemsPerPage': '{items}条/页',
|
||||
'voiceClone.firstPage': '首页',
|
||||
'voiceClone.prevPage': '上一页',
|
||||
'voiceClone.nextPage': '下一页',
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export default {
|
||||
'voiceClone.training': '訓練中',
|
||||
'voiceClone.trainSuccess': '訓練成功',
|
||||
'voiceClone.trainFailed': '訓練失敗',
|
||||
'voiceClone.itemsPerPage': '每頁 {items} 條',
|
||||
'voiceClone.itemsPerPage': '{items}條/頁',
|
||||
'voiceClone.firstPage': '首頁',
|
||||
'voiceClone.prevPage': '上一頁',
|
||||
'voiceClone.nextPage': '下一頁',
|
||||
|
||||
@@ -395,7 +395,10 @@ export default {
|
||||
|
||||
// 获取设备状态
|
||||
fetchDeviceStatus(agentId) {
|
||||
// 开启表格等待状态,处理动态加载表头导致鼠标所在行的hover事件无法移除的问题
|
||||
this.loading = true;
|
||||
Api.device.getDeviceStatus(agentId, ({ data }) => {
|
||||
this.loading = false;
|
||||
if (data.code === 0) {
|
||||
try {
|
||||
// 解析后端返回的设备状态JSON
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
<div style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 15px;
|
||||
margin-left: 10px;
|
||||
margin-top: 11px;
|
||||
margin-left: 11px;
|
||||
gap: 10px;
|
||||
">
|
||||
<img loading="lazy" alt="" src="@/assets/xiaozhi-logo.png" style="width: 45px; height: 45px" />
|
||||
<img loading="lazy" alt="" :src="xiaozhiAiIcon" style="height: 18px" />
|
||||
<img loading="lazy" alt="" src="@/assets/xiaozhi-logo.png" style="width: 42px; height: 42px" />
|
||||
<img loading="lazy" alt="" :src="xiaozhiAiIcon" style="height: 20px" />
|
||||
</div>
|
||||
</el-header>
|
||||
<div class="login-person">
|
||||
|
||||
Reference in New Issue
Block a user