feat: 添加语音盒子自定义主题功能

This commit is contained in:
zhuoqinglian
2026-01-16 14:52:40 +08:00
parent a8c13d740b
commit efa0d1095d
277 changed files with 10116 additions and 0 deletions
@@ -64,6 +64,9 @@
<el-button size="mini" type="text" @click="handleUnbind(scope.row.device_id)">
{{ $t('device.unbind') }}
</el-button>
<el-button v-if="isGenerate(scope.row)" size="mini" type="text" @click="handleGenertor">
{{ $t('device.deviceThemeGeneration') }}
</el-button>
</template>
</el-table-column>
</el-table>
@@ -334,6 +337,10 @@ export default {
});
});
},
handleGenertor() {
sessionStorage.setItem('devicePath', window.location.href);
window.location.href = `${window.location.origin}/generator/index.html`;
},
goFirst() {
this.currentPage = 1;
},
@@ -467,6 +474,11 @@ export default {
this.$message.error(msg || this.$t('message.error'))
})
},
// 判断是否可以生成表情、主题、字体bin文件
isGenerate(row) {
const version = row.firmwareVersion.replace(/\./g, '');
return Number(version) >= 200;
},
}
};
</script>