mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
Merge pull request #2877 from xinnan-tech/fix-digital-human
update: 调整配置获取
This commit is contained in:
commit
5e7d192ebc
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue