From df27873e7b508dca51daf2c12f58d88869f983be Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Sat, 5 Oct 2024 19:33:52 +0530 Subject: [PATCH] chore: put define component in scope --- app/javascript/widget/components/ChatInputWrap.vue | 8 +++----- app/javascript/widget/mixins/routerMixin.js | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/javascript/widget/components/ChatInputWrap.vue b/app/javascript/widget/components/ChatInputWrap.vue index 0ab31708b..1cfcd3125 100755 --- a/app/javascript/widget/components/ChatInputWrap.vue +++ b/app/javascript/widget/components/ChatInputWrap.vue @@ -9,16 +9,14 @@ import FluentIcon from 'shared/components/FluentIcon/Index.vue'; import ResizableTextArea from 'shared/components/ResizableTextArea.vue'; import { useDarkMode } from 'widget/composables/useDarkMode'; -const EmojiInput = defineAsyncComponent( - () => import('shared/components/emoji/EmojiInput.vue') -); - export default { name: 'ChatInputWrap', components: { ChatAttachmentButton, ChatSendButton, - EmojiInput, + EmojiInput: defineAsyncComponent( + () => import('shared/components/emoji/EmojiInput.vue') + ), FluentIcon, ResizableTextArea, }, diff --git a/app/javascript/widget/mixins/routerMixin.js b/app/javascript/widget/mixins/routerMixin.js index 23b55f03d..b3b37f6fd 100644 --- a/app/javascript/widget/mixins/routerMixin.js +++ b/app/javascript/widget/mixins/routerMixin.js @@ -1,7 +1,6 @@ export default { methods: { async replaceRoute(name, params = {}) { - console.log('replaceRoute', name, params); if (this.$route.name !== name) { return this.$router.replace({ name, params }); }