diff --git a/frontend/src/views/SearchView.vue b/frontend/src/views/SearchView.vue
index e0b8679..edce50a 100644
--- a/frontend/src/views/SearchView.vue
+++ b/frontend/src/views/SearchView.vue
@@ -6,6 +6,7 @@ import { searchEventsTimeline } from '@/api/events'
import type { SearchTimelineResponse } from '@/types/event'
import UnifiedEventCard from '@/components/UnifiedEventCard.vue'
import CustomSelect from '@/components/CustomSelect.vue'
+import type { ApexOptions } from 'apexcharts'
const keyword = ref('')
const searchResult = ref
(null)
@@ -56,7 +57,7 @@ const filteredEvents = computed(() => {
})
// 热度时间线图表配置。
-const chartOptions = ref({
+const chartOptions = ref({
chart: {
type: 'area',
height: 350,
@@ -66,12 +67,12 @@ const chartOptions = ref({
},
animations: {
enabled: true,
- easing: 'easeinout',
+ // easing: 'easeinout',
speed: 800,
},
// 点击图表数据点:切换选中时间,再次点击则取消筛选
events: {
- markerClick: function(event: any, chartContext: any, { dataPointIndex }: any) {
+ markerClick: function(event: unknown, chartContext: unknown, { dataPointIndex }: never) {
if (searchResult.value && searchResult.value.timeline[dataPointIndex]) {
const clickedTime = searchResult.value.timeline[dataPointIndex].time_label
if (selectedTimeLabel.value === clickedTime) {
@@ -368,7 +369,7 @@ async function handleSearch() {
gap: 24px;
align-items: stretch;
position: relative;
- z-index: 10;
+ z-index: 10;
}
.search-box {
@@ -378,7 +379,7 @@ async function handleSearch() {
flex-direction: column;
justify-content: center;
position: relative;
- z-index: 2;
+ z-index: 2;
}
.tips-box {
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 313158b..6d1a94a 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -16,7 +16,7 @@ export default defineConfig({
strictPort: true,
proxy: {
'/api': {
- target: 'http://10.252.130.135:8000',
+ target: 'http://localhost:8000',
changeOrigin: true,
},
},