Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/frontend/ai-blueking/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueking/ai-blueking",
"version": "1.2.2-beta.3",
"version": "1.2.2",
"description": "AI 小鲸",
"license": "MIT",
"author": "Tencent BlueKing",
Expand Down
7 changes: 4 additions & 3 deletions src/frontend/ai-blueking/src/components/history-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="history-panel-header">
<h1 class="history-panel-header-title">{{ t('历史会话') }}</h1>
<bk-input
v-model="search"
v-model="searchKey"
behavior="simplicity"
:placeholder="t('搜索')"
style="height: 22px"
Expand Down Expand Up @@ -95,6 +95,7 @@
import { ref, computed, nextTick } from 'vue';

import { t } from '../lang';
import { Search } from 'bkui-vue/lib/icon';
import type { SessionStore } from '../store/sessionStore';
import type { ISessionEditItem, HistoryItem } from '../store/types';

Expand All @@ -106,7 +107,7 @@
(e: 'close'): void;
}>();

const search = ref('');
const searchKey = ref('');

const sessionStore = props.sessionStore;

Expand All @@ -120,7 +121,7 @@
};

const filteredSessions = sessionStore.sessionList.value.filter(item =>
item.sessionName.toLowerCase().includes(search.value.toLowerCase())
item.sessionName.toLowerCase().includes(searchKey.value.toLowerCase())
);

for (const session of filteredSessions) {
Expand Down
Loading