From b6a6fdaa073d9d402f87e312abaaeb005efc0e96 Mon Sep 17 00:00:00 2001 From: coord_e Date: Mon, 18 Jan 2021 00:52:41 +0900 Subject: [PATCH 1/2] Fix to wait for the removal of item in i/registry/remove (#7101) --- src/server/api/endpoints/i/registry/remove.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/i/registry/remove.ts b/src/server/api/endpoints/i/registry/remove.ts index e73444efd..4f04d653b 100644 --- a/src/server/api/endpoints/i/registry/remove.ts +++ b/src/server/api/endpoints/i/registry/remove.ts @@ -41,5 +41,5 @@ export default define(meta, async (ps, user) => { throw new ApiError(meta.errors.noSuchKey); } - RegistryItems.remove(item); + await RegistryItems.remove(item); }); From f7e4c4febff42fdd65a6d742e874eade4314db52 Mon Sep 17 00:00:00 2001 From: sobadon Date: Mon, 18 Jan 2021 00:53:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=B0=E3=83=AB=E3=83=BC=E3=83=97?= =?UTF-8?q?=E3=81=AE=E7=B7=A8=E9=9B=86=E7=94=BB=E9=9D=A2=E3=82=92=E3=82=A6?= =?UTF-8?q?=E3=82=A3=E3=83=B3=E3=83=89=E3=82=A6=E3=81=A7=E9=96=8B=E3=81=91?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=20(#7100)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/pages/my-groups/group.vue | 11 +++++++++-- src/client/router.ts | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/client/pages/my-groups/group.vue b/src/client/pages/my-groups/group.vue index d0d83c9c0..ab6dc8539 100644 --- a/src/client/pages/my-groups/group.vue +++ b/src/client/pages/my-groups/group.vue @@ -45,6 +45,13 @@ export default defineComponent({ MkButton }, + props: { + groupId: { + type: String, + required: true, + }, + }, + data() { return { INFO: computed(() => this.group ? { @@ -58,7 +65,7 @@ export default defineComponent({ }, watch: { - $route: 'fetch' + groupId: 'fetch', }, created() { @@ -69,7 +76,7 @@ export default defineComponent({ fetch() { Progress.start(); os.api('users/groups/show', { - groupId: this.$route.params.group + groupId: this.groupId }).then(group => { this.group = group; os.api('users/show', { diff --git a/src/client/router.ts b/src/client/router.ts index 6f79426b2..5f2a65745 100644 --- a/src/client/router.ts +++ b/src/client/router.ts @@ -55,7 +55,7 @@ export const router = createRouter({ { path: '/my/lists', component: page('my-lists/index') }, { path: '/my/lists/:list', component: page('my-lists/list') }, { path: '/my/groups', component: page('my-groups/index') }, - { path: '/my/groups/:group', component: page('my-groups/group') }, + { path: '/my/groups/:group', component: page('my-groups/group'), props: route => ({ groupId: route.params.group }) }, { path: '/my/antennas', component: page('my-antennas/index') }, { path: '/my/clips', component: page('my-clips/index') }, { path: '/scratchpad', component: page('scratchpad') },