mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 01:53:53 +08:00
Merge pull request #2877 from xinnan-tech/fix-digital-human
update: 调整配置获取
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user