Skip to content

Commit 1718126

Browse files
committed
fix: warning
1 parent cd14dbf commit 1718126

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

src/hooks/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import useChartOption from './chart-option'
33
import useLog from './log'
44
import useGist from './gist'
55
import useIngest from './ingest'
6-
import { useDateTimeFormat } from './use-date-time-format'
7-
import { useDashboardTimezone } from './use-dashboard-timezone'
86

9-
export { useQueryCode, useChartOption, useLog, useGist, useIngest, useDateTimeFormat, useDashboardTimezone }
7+
// Re-export from individual files to avoid duplicate imports
8+
export { useQueryCode, useChartOption, useLog, useGist, useIngest }
9+
10+
// Re-export timezone and datetime formatters
11+
export { useDateTimeFormat } from './use-date-time-format'
12+
export { useDashboardTimezone } from './use-dashboard-timezone'

src/views/dashboard/logs/query/ExportModal.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ a-modal(
1818
a-form-item(:label="$t('logsQuery.exportLimit')")
1919
a-space(style="width: 100%" fill)
2020
a-input(
21+
v-model.number="limit"
2122
type="number"
2223
style="flex: 1"
2324
placeholder="Enter limit"
24-
:model-value="limit"
2525
:min="1"
26-
@update:model-value="handleLimitChange"
2726
)
2827
template(v-if="totalCount !== null")
2928
span(style="color: var(--color-text-3); margin-left: 8px; white-space: nowrap")
@@ -135,13 +134,6 @@ a-modal(
135134
}
136135
)
137136
138-
function handleLimitChange(value: string | number) {
139-
const numValue = Number(value)
140-
if (!Number.isNaN(numValue) && numValue >= 1) {
141-
limit.value = numValue
142-
}
143-
}
144-
145137
function handleConfirm() {
146138
const limitValue = Number(limit.value)
147139
if (!limitValue || limitValue < 1 || Number.isNaN(limitValue)) {

src/views/dashboard/logs/query/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
ExportModal(v-model:visible="exportModalVisible" :sql="exportSqlText" @confirm="handleExportConfirm")
128128
</template>
129129

130-
<script setup lang="ts">
130+
<script setup lang="ts" name="LogsQuery">
131131
import { ref, computed, shallowRef, watch, onMounted, toRefs, nextTick } from 'vue'
132132
import { useStorage, useLocalStorage } from '@vueuse/core'
133133
import SQLBuilder from '@/components/sql-builder/index.vue'

0 commit comments

Comments
 (0)