fix(web): 统一 API 请求语义并修复鼠标移动发送间隔

- 新增统一 request:同时处理 HTTP 非 2xx 与 success=false,并用 i18n toast 提示错误
- api/index.ts 与 api/config.ts 统一使用同一 request,避免错误处理不一致
- "发送间隔" 仅控制鼠标移动事件频率,WebRTC/WS 行为一致,不影响点击/滚轮
This commit is contained in:
mofeng-git
2026-01-11 11:37:35 +08:00
parent 206594e292
commit 0f52168e75
8 changed files with 296 additions and 210 deletions

View File

@@ -41,6 +41,13 @@ export default {
toggleTheme: 'Toggle theme',
toggleLanguage: 'Toggle language',
},
api: {
operationFailed: 'Operation Failed',
operationFailedDesc: 'Operation failed',
parseResponseFailed: 'Failed to parse response',
networkError: 'Network Error',
networkErrorDesc: 'Unable to connect to server. Please check your connection.',
},
nav: {
console: 'Console',
msd: 'Virtual Media',