Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e7403ba2
authored
May 22, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】AI chat 增加 new chat
parent
aa93172c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
src/views/ai/chat/MessageNewChat.vue
+50
-0
No files found.
src/views/ai/chat/MessageNewChat.vue
0 → 100644
View file @
e7403ba2
<!-- message 新增对话 -->
<
template
>
<div
class=
"new-chat"
>
<div
class=
"box-center"
>
<div
class=
"tip"
>
点击下方按钮,开始你的对话吧
</div>
<div
class=
"btns"
><el-button
type=
"primary"
round
@
click=
"handlerNewChat"
>
新建对话
</el-button></div>
</div>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
// 定义钩子
const
emits
=
defineEmits
([
'onNewChat'
])
/**
* 新建 chat
*/
const
handlerNewChat
=
async
()
=>
{
await
emits
(
'onNewChat'
)
}
</
script
>
<
style
scoped
lang=
"scss"
>
.new-chat
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
width
:
100%
;
height
:
100%
;
.box-center
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
.tip
{
font-size
:
14px
;
color
:
#858585
;
}
.btns
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
margin-top
:
20px
;
}
}
}
</
style
>
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