Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-work
/
glsk-ai-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e8de9ab2
authored
Mar 21, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.0' of
http://192.168.3.233:8090/saas/wx-work/glsk-ai-assistant
into v1.0.0
2 parents
b1fa95a6
cc54a852
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
app/components/index.tsx
app/components/sidebar/index.tsx
app/components/index.tsx
View file @
e8de9ab
...
...
@@ -578,6 +578,10 @@ const Main: FC<IMainProps> = ({ phone }) => {
const id = currId
await uninstallApp(id)
setShowConfirm(false)
if (id === currConversationId) {
handleConversationIdChange('-1')
}
const conversationData = await fetchConversations()
const { data: conversations } = conversationData as {
data: ConversationItem[]
...
...
app/components/sidebar/index.tsx
View file @
e8de9ab
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-03-18 10:16:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-03-2
0 15:38:29
* @LastEditTime: 2025-03-2
1 16:40:20
* @FilePath: \glsk-ai-assistant\app\components\sidebar\index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -55,11 +55,11 @@ const Sidebar: FC<ISidebarProps> = ({
setShowModalId(id);
}
};
const modalEl = (item: ConversationItem
, index: number
) => (
const modalEl = (item: ConversationItem) => (
<div className={classNames(s.operation_warp)}>
<div
onClick={(
) => toggleModal(item.id)
}
style={{ display: i
ndex == 0
? "none" : "block" }}
onClick={(
e) =>{e.stopPropagation(); toggleModal(item.id)}
}
style={{ display: i
tem.id == '-1'
? "none" : "block" }}
className={classNames(
s.style_btn__bbesM,
"h-6 w-6 rounded-md border-none py-1"
...
...
@@ -103,7 +103,7 @@ const Sidebar: FC<ISidebarProps> = ({
s.actionItem__WNqZw,
"hover:bg-gray-50 group"
)}
onClick={(
) => onRenameConversation(item)
}
onClick={(
e) => {e.stopPropagation(); onRenameConversation(item)}
}
>
<svg
viewBox="0 0 24 24"
...
...
@@ -122,7 +122,7 @@ const Sidebar: FC<ISidebarProps> = ({
s.actionItem__WNqZw,
"hover:bg-gray-50 group"
)}
onClick={(
) => onDelete(item.id)
}
onClick={(
e) => {e.stopPropagation();onDelete(item.id)}
}
>
<svg
viewBox="0 0 24 24"
...
...
@@ -160,7 +160,7 @@ const Sidebar: FC<ISidebarProps> = ({
<nav className="mt-4 flex-1 space-y-1 bg-white p-4 !pt-0">
<div onMouseLeave={() => setShowModalId("")}>
{list.map(
(item, index)
=> {
{list.map(
item
=> {
const isCurrent = item.id === currentId;
const ItemIcon = isCurrent
? ChatBubbleOvalLeftEllipsisSolidIcon
...
...
@@ -187,7 +187,7 @@ const Sidebar: FC<ISidebarProps> = ({
aria-hidden="true"
/>
<div className={classNames(s.operation_name)}> {item.name}</div>
{modalEl(item
, index
)}
{modalEl(item)}
</div>
);
})}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment