mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fix(web): 统一 API 请求语义并修复鼠标移动发送间隔
- 新增统一 request:同时处理 HTTP 非 2xx 与 success=false,并用 i18n toast 提示错误 - api/index.ts 与 api/config.ts 统一使用同一 request,避免错误处理不一致 - "发送间隔" 仅控制鼠标移动事件频率,WebRTC/WS 行为一致,不影响点击/滚轮
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -41,6 +41,13 @@ export default {
|
||||
toggleTheme: '切换主题',
|
||||
toggleLanguage: '切换语言',
|
||||
},
|
||||
api: {
|
||||
operationFailed: '操作失败',
|
||||
operationFailedDesc: '操作失败',
|
||||
parseResponseFailed: '解析响应失败',
|
||||
networkError: '网络错误',
|
||||
networkErrorDesc: '无法连接到服务器,请检查网络连接。',
|
||||
},
|
||||
nav: {
|
||||
console: '控制台',
|
||||
msd: '虚拟媒体',
|
||||
|
||||
Reference in New Issue
Block a user