Revert "Merge pull request #424 from Wangnov/feat/i18n"

This reverts commit 1d915d8327, reversing
changes made to 009f7c84f6.
This commit is contained in:
shaw
2025-09-12 09:21:53 +08:00
parent 1d915d8327
commit 9c4dc714f8
80 changed files with 7026 additions and 19087 deletions

View File

@@ -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