feat(admin): knowledge iteration + ragflow ingestion views
新增 KnowledgeIteration/RagflowIngestion 视图; api/troubleshooting/admin store 适配; 锁定 pnpm-lock.yaml。
This commit is contained in:
@@ -69,7 +69,7 @@ export const useAdminStore = defineStore('admin', () => {
|
||||
logging.value = true
|
||||
try {
|
||||
// 注意:后端 AgentLogin Schema 要求必填字段 name
|
||||
const response = await apiClient.post('/agents/login', {
|
||||
const response: any = await apiClient.post('/agents/login', {
|
||||
user_id: inputUserId,
|
||||
name: inputUserId, // 后端必填字段,使用 user_id 作为默认值
|
||||
password: password,
|
||||
@@ -144,8 +144,8 @@ export const useAdminStore = defineStore('admin', () => {
|
||||
async function refreshAdminInfo(): Promise<void> {
|
||||
try {
|
||||
if (!token.value) return
|
||||
const response = await apiClient.get('/agents/me')
|
||||
adminInfo.value = response
|
||||
const response: any = await apiClient.get('/agents/me')
|
||||
adminInfo.value = response as any
|
||||
} catch (error) {
|
||||
console.error('获取管理员信息失败:', error)
|
||||
// 如果是 401 未授权,说明 token 过期,需要重新登录
|
||||
|
||||
Reference in New Issue
Block a user