From 78cc12a245e6bcd303ebada07c3827bde6723656 Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 12 Jun 2025 16:37:16 +0800 Subject: [PATCH] refactor: eslint --- frontend/src/views/chat/ChatList.vue | 1 + frontend/src/views/chat/ChatRow.vue | 4 +++- frontend/src/views/chat/WelcomeBlock.vue | 4 +++- frontend/src/views/setting/Professional.vue | 3 +-- frontend/src/views/system/model/index.vue | 2 +- frontend/src/views/system/user/index.vue | 3 +-- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/chat/ChatList.vue b/frontend/src/views/chat/ChatList.vue index a6f3e5d0..c312545e 100644 --- a/frontend/src/views/chat/ChatList.vue +++ b/frontend/src/views/chat/ChatList.vue @@ -10,6 +10,7 @@ const props = withDefaults( loading?: boolean }>(), { + currentChatId: undefined, chatList: () => [], loading: false, } diff --git a/frontend/src/views/chat/ChatRow.vue b/frontend/src/views/chat/ChatRow.vue index d65cd9f7..3c28e55f 100644 --- a/frontend/src/views/chat/ChatRow.vue +++ b/frontend/src/views/chat/ChatRow.vue @@ -11,7 +11,9 @@ const props = withDefaults( currentChat: ChatInfo datasource?: number }>(), - {} + { + datasource: undefined, + } ) const emits = defineEmits(['update:datasource']) diff --git a/frontend/src/views/chat/WelcomeBlock.vue b/frontend/src/views/chat/WelcomeBlock.vue index 0e9601bd..c544b91b 100644 --- a/frontend/src/views/chat/WelcomeBlock.vue +++ b/frontend/src/views/chat/WelcomeBlock.vue @@ -12,7 +12,9 @@ const props = withDefaults( modelValue?: number currentChat: ChatInfo }>(), - {} + { + modelValue: undefined, + } ) const dsList = ref>([]) diff --git a/frontend/src/views/setting/Professional.vue b/frontend/src/views/setting/Professional.vue index 83b9ec15..aff70497 100644 --- a/frontend/src/views/setting/Professional.vue +++ b/frontend/src/views/setting/Professional.vue @@ -7,7 +7,7 @@ class="sqlbot-search" placeholder="Search" prefix-icon="el-icon-search" - @keyup.enter.native="handleSearch" + @keyup.enter="handleSearch" >