From 8cf17d83b280901292b5bbeff10d46d99013cbe2 Mon Sep 17 00:00:00 2001 From: be beet <63141491+beetcb@users.noreply.github.com> Date: Sun, 28 Feb 2021 21:52:14 +0800 Subject: [PATCH] fix(api): unknown typos --- src/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index b0dee40..eb98fce 100644 --- a/src/api.js +++ b/src/api.js @@ -160,7 +160,7 @@ class User { name: 'selection', message: '请选择删除对象:', choices: [ - ...get('users').map((e, idx) => ({ + ...conf.get('users').map((e, idx) => ({ value: idx, name: `${e.alias || e.user.name}`, })), @@ -194,7 +194,7 @@ class School { ] let res = await prompt(questions) - const school = await this.schoolApi(res.id) + const school = await this.schoolApi(res.ids) school.addr = await this.schoolAddr(school.name) conf.set('school', school)