diff --git a/app.js b/app.js index fc240fe..6d36e7b 100644 --- a/app.js +++ b/app.js @@ -42,6 +42,9 @@ class CLIProxyManager { this.managementKey = ''; this.isConnected = false; this.isLoggedIn = false; + this.uiVersion = null; + this.serverVersion = null; + this.serverBuildDate = null; // 配置缓存 - 改为分段缓存 this.configCache = {}; // 改为对象,按配置段缓存 @@ -129,6 +132,7 @@ class CLIProxyManager { } init() { + this.initUiVersion(); this.initializeTheme(); this.checkLoginStatus(); this.bindEvents(); diff --git a/i18n.js b/i18n.js index 70cb2cb..5473708 100644 --- a/i18n.js +++ b/i18n.js @@ -508,7 +508,9 @@ const i18n = { 'sidebar.toggle_collapse': '收起侧边栏', // 页脚 - 'footer.version': '版本', + 'footer.api_version': 'CLI Proxy API 版本', + 'footer.build_date': '构建时间', + 'footer.version': '管理中心版本', 'footer.author': '作者' }, @@ -1013,7 +1015,9 @@ const i18n = { 'sidebar.toggle_collapse': 'Collapse sidebar', // Footer - 'footer.version': 'Version', + 'footer.api_version': 'CLI Proxy API Version', + 'footer.build_date': 'Build Time', + 'footer.version': 'Management UI Version', 'footer.author': 'Author' } }, diff --git a/index.html b/index.html index dda0222..b334b6e 100644 --- a/index.html +++ b/index.html @@ -1003,7 +1003,14 @@