chore: put define component in scope

This commit is contained in:
Shivam Mishra
2024-10-05 19:33:52 +05:30
parent 9964daae2b
commit df27873e7b
2 changed files with 3 additions and 6 deletions
@@ -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,
},
@@ -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 });
}