Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pms-dispatch-assistant
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜耀祖
pms-dispatch-assistant
Commits
a54ffe7a
Commit
a54ffe7a
authored
Apr 22, 2025
by
姜耀祖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除不适用方法
parent
6bf7630a
Pipeline
#21064
passed with stages
in 3 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
45 deletions
+0
-45
ai-chat-vue.js
src/main/resources/static/pages/langchain/js/ai-chat-vue.js
+0
-45
No files found.
src/main/resources/static/pages/langchain/js/ai-chat-vue.js
View file @
a54ffe7a
...
@@ -323,51 +323,6 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V
...
@@ -323,51 +323,6 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V
// 这里添加加载对应对话历史的逻辑
// 这里添加加载对应对话历史的逻辑
// 实际实现时可以调用API获取历史记录
// 实际实现时可以调用API获取历史记录
},
},
// 切换菜单显示状态
toggleMenu
(
chatId
,
event
)
{
// 关闭其他所有菜单
this
.
historySections
.
forEach
(
section
=>
{
section
.
items
.
forEach
(
item
=>
{
if
(
item
.
id
!==
chatId
)
{
item
.
showMenu
=
false
;
}
});
});
// 切换当前菜单状态
this
.
historySections
.
forEach
(
section
=>
{
const
item
=
section
.
items
.
find
(
item
=>
item
.
id
===
chatId
);
if
(
item
)
{
item
.
showMenu
=
!
item
.
showMenu
;
if
(
item
.
showMenu
)
{
this
.
$nextTick
(()
=>
{
const
menuBtn
=
event
.
currentTarget
;
const
historyItem
=
menuBtn
.
closest
(
'.history-item'
);
const
menuDropdown
=
menuBtn
.
nextElementSibling
;
// 计算菜单位置
// 使用绝对定位,相对于历史记录项的右下角
menuDropdown
.
style
.
position
=
'absolute'
;
menuDropdown
.
style
.
right
=
'0'
;
menuDropdown
.
style
.
top
=
'100%'
;
menuDropdown
.
style
.
marginTop
=
'5px'
;
menuDropdown
.
style
.
zIndex
=
'1000'
;
});
}
}
});
},
// 点击其他位置隐藏菜单
closeAllMenus
()
{
this
.
historySections
.
forEach
(
section
=>
{
section
.
items
.
forEach
(
item
=>
{
item
.
showMenu
=
false
;
});
});
},
// 删除对话
// 删除对话
deleteChat
(
chatId
)
{
deleteChat
(
chatId
)
{
// 关闭菜单
// 关闭菜单
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment