feat: 添加租户工具配置系统
All checks were successful
continuous-integration/drone/push Build is passing

- 新增 platform_tool_configs 表和 ToolConfig Model
- 新增工具配置 CRUD API (/api/tool-configs)
- 租户详情页添加工具配置管理 Tab
- 修复查看 Token 显示问题,添加专用获取接口
This commit is contained in:
2026-01-27 11:30:02 +08:00
parent 8e675c207d
commit 7134947c0c
7 changed files with 901 additions and 55 deletions

View File

@@ -232,9 +232,14 @@ function handleCopyUrl() {
}
async function handleViewToken(row) {
// 这里需要后端返回真实 token暂时用 placeholder
// 实际生产中可能需要单独 API 获取
showToken(row.access_token === '******' ? '需要调用API获取' : row.access_token, row.app_code)
try {
const res = await api.get(`/api/tenant-apps/${row.id}/token`)
currentToken.value = res.data.access_token
currentAppUrl.value = res.data.base_url || ''
tokenDialogVisible.value = true
} catch (e) {
// 错误已在拦截器处理
}
}
onMounted(() => {