Skip to content

Commit 592df04

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents a10b8dd + 148b792 commit 592df04

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

chat2db-client/src/blocks/Tree/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ const TreeNode = memo((props: TreeNodeIProps) => {
9090
setTimeout(() => {
9191
console.log(res);
9292
if (res.data) {
93-
// res.data每次只插入200条数据,间隔30ms
94-
const count = res.data.length / 200;
93+
// res.data每次只插入50条数据,间隔50ms
94+
const count = res.data.length / 50;
9595
for (let i = 0; i < count; i++) {
9696
setTimeout(() => {
9797
setTreeNodeData({

chat2db-client/src/pages/main/index.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ import Connection from './connection';
2525
import Team from './team';
2626
import Setting from '@/blocks/Setting';
2727

28-
// ----- utils -----
29-
import { generateUrl } from '@/utils/url';
30-
3128
import styles from './index.less';
3229
import { useUpdateEffect } from '@/hooks';
3330

@@ -124,8 +121,12 @@ function MainPage() {
124121
};
125122

126123
const switchingNav = (key: string) => {
127-
setActiveNavKey(key);
128-
setMainPageActiveTab(key);
124+
if (key === 'github') {
125+
window.open('https://github.com/chat2db/Chat2DB/', '_blank');
126+
} else {
127+
setActiveNavKey(key);
128+
setMainPageActiveTab(key);
129+
}
129130
};
130131

131132
const handleLogout = () => {

0 commit comments

Comments
 (0)