diff --git a/src/commands/user/list.ts b/src/commands/user/list.ts index 8903a46..214d1bd 100644 --- a/src/commands/user/list.ts +++ b/src/commands/user/list.ts @@ -43,10 +43,7 @@ export function buildUserListCommand(): Command { log.error(`user list 失败: ${(r as { msg?: string }).msg}`) process.exit(1) } - const list = r.list || [] - process.exit(1) - } - const list = r.data?.list || [] + const list = r.list || r.data?.list || [] if (opts.json) { printJson(r) return