From bcf7530eef3e43282a8869d5701ccfcc3f5b2e5a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 5 Dec 2021 16:57:49 +0900 Subject: [PATCH] refactor(client): :sparkles: --- .../client/src/components/global/emoji.vue | 84 +++++++------------ packages/client/src/os.ts | 2 - 2 files changed, 29 insertions(+), 57 deletions(-) diff --git a/packages/client/src/components/global/emoji.vue b/packages/client/src/components/global/emoji.vue index 67a3dea2c5..92edb1caf9 100644 --- a/packages/client/src/components/global/emoji.vue +++ b/packages/client/src/components/global/emoji.vue @@ -6,9 +6,11 @@ diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 1c3c6d3e59..0f86a8520b 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -172,7 +172,6 @@ export async function popup(component: Component | typeof import('*.vue') | Prom const id = ++popupIdCount; const dispose = () => { - if (_DEV_) console.log('os:popup close', id, component, props, events); // このsetTimeoutが無いと挙動がおかしくなる(autocompleteが閉じなくなる)。Vueのバグ? setTimeout(() => { popups.value = popups.value.filter(popup => popup.id !== id); @@ -188,7 +187,6 @@ export async function popup(component: Component | typeof import('*.vue') | Prom id, }; - if (_DEV_) console.log('os:popup open', id, component, props, events); popups.value.push(state); return {