mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复创建 API Key 时专属账号下拉框无选项的问题
问题描述: - 创建 API Key 时,专属账号下拉框中没有显示任何账号选项 - 原因是前端代码使用了错误的过滤条件 `a.isDedicated` 解决方案: - 将过滤条件修改为 `a.accountType === 'dedicated'` - 后端返回的账号对象使用 `accountType` 属性(值为 'shared' 或 'dedicated') 其他修改: - 更新 package.json 中的 build:web 和 install:web 脚本路径 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
"scripts": {
|
||||
"start": "node src/app.js",
|
||||
"dev": "nodemon src/app.js",
|
||||
"build:web": "cd web && npm run build",
|
||||
"install:web": "cd web && npm install",
|
||||
"build:web": "cd web/admin-spa && npm run build",
|
||||
"install:web": "cd web/admin-spa && npm install",
|
||||
"setup": "node scripts/setup.js",
|
||||
"cli": "node cli/index.js",
|
||||
"init:costs": "node src/cli/initCosts.js",
|
||||
|
||||
Reference in New Issue
Block a user