mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 19:52:42 +00:00
Revert "feat: 完整国际化支持 - Web 管理界面多语言实现"
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// API Stats 专用 API 客户端
|
||||
// 与管理员 API 隔离,不需要认证
|
||||
|
||||
import i18n from '@/i18n'
|
||||
|
||||
class ApiStatsClient {
|
||||
constructor() {
|
||||
this.baseURL = window.location.origin
|
||||
@@ -28,9 +26,7 @@ class ApiStatsClient {
|
||||
const data = await response.json()
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(
|
||||
data.message || i18n.global.t('common.errors.requestFailed', { status: response.status })
|
||||
)
|
||||
throw new Error(data.message || `请求失败: ${response.status}`)
|
||||
}
|
||||
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user