mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
fix: translate corrupted Chinese text to proper Chinese in controller.js
- Fix corrupted Chinese characters in addMCPTool function - Translate placeholder and button text to proper Chinese
This commit is contained in:
parent
2f53b921fe
commit
dcd0ef3f40
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// UI controller module
|
// UI controller module
|
||||||
import { loadConfig, saveConfig } from '../config/manager.js';
|
import { loadConfig, saveConfig } from '../config/manager.js';
|
||||||
import { getAudioRecorder } from '../core/audio/recorder.js';
|
import { getAudioRecorder } from '../core/audio/recorder.js';
|
||||||
import { getWebSocketHandler } from '../core/network/websocket.js';
|
import { getWebSocketHandler } from '../core/network/websocket.js';
|
||||||
|
|
@ -520,9 +520,9 @@ class UIController {
|
||||||
toolDiv.className = 'properties-container';
|
toolDiv.className = 'properties-container';
|
||||||
toolDiv.innerHTML = `
|
toolDiv.innerHTML = `
|
||||||
<div class="property-item">
|
<div class="property-item">
|
||||||
<input type="text" placeholder="工具名称" value="新工具">
|
<input type="text" placeholder="工具名称" value="新工具">
|
||||||
<input type="text" placeholder="工具描述" value="工具描述">
|
<input type="text" placeholder="工具描述" value="工具描述">
|
||||||
<button class="remove-property" onclick="uiController.removeMCPTool('${toolId}')">σêáΘÖñ</button>
|
<button class="remove-property" onclick="uiController.removeMCPTool('${toolId}')">删除</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue