Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(frontend): fix some warnings (#10483)

Liu Ji533ff3d4b993
diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vue
index 38fe4d9a10..3cd80ca010 100644
--- a/frontend/src/components/QuickActionPanel.vue
+++ b/frontend/src/components/QuickActionPanel.vue
@@ -151,6 +151,10 @@ interface QuickAction {
action: () => void;
}
+defineOptions({
+ inheritAttrs: false,
+});
+
const props = defineProps({
quickActionList: {
required: true,
diff --git a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue
index 7937539318..c5f4c6e48d 100644
--- a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue
@@ -117,7 +117,7 @@
<script lang="ts" setup>
import { useElementSize } from "@vueuse/core";
import { NButtonGroup, NButton, NPopover } from "naive-ui";
-import { computed, defineEmits, reactive, ref } from "vue";
+import { computed, reactive, ref, unref } from "vue";
import {
useTabStore,
useSQLEditorStore,
@@ -222,8 +222,9 @@ const showClearScreen = computed(() => {
const queryList = computed(() => {
return (
- webTerminalStore.getQueryStateByTab(tabStore.currentTab).queryItemList
- .value || []
+ unref(
+ webTerminalStore.getQueryStateByTab(tabStore.currentTab).queryItemList
+ ) || []
);
});