Merge pull request #2877 from xinnan-tech/fix-digital-human

update: 调整配置获取
This commit is contained in:
wengzh 2026-01-22 17:55:46 +08:00 committed by GitHub
commit 5e7d192ebc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,9 +58,10 @@ export function saveConfig() {
// 获取配置值 // 获取配置值
export function getConfig() { export function getConfig() {
const deviceMac = localStorage.getItem('xz_tester_deviceMac'); // 从DOM获取值
const deviceName = localStorage.getItem('xz_tester_deviceName'); const deviceMac = document.getElementById('deviceMac')?.value.trim() || '';
const clientId = localStorage.getItem('xz_tester_clientId'); const deviceName = document.getElementById('deviceName')?.value.trim() || '';
const clientId = document.getElementById('clientId')?.value.trim() || '';
return { return {
deviceId: deviceMac, // 使用MAC地址作为deviceId deviceId: deviceMac, // 使用MAC地址作为deviceId