mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
feat: add chat export button
This commit is contained in:
parent
0c8157dbc0
commit
57c69738ba
@ -1,8 +1,8 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "iconfont"; /* Project id 4125778 */
|
font-family: "iconfont"; /* Project id 4125778 */
|
||||||
src: url('iconfont.woff2?t=1687341905766') format('woff2'),
|
src: url('iconfont.woff2?t=1691029402206') format('woff2'),
|
||||||
url('iconfont.woff?t=1687341905766') format('woff'),
|
url('iconfont.woff?t=1691029402206') format('woff'),
|
||||||
url('iconfont.ttf?t=1687341905766') format('truetype');
|
url('iconfont.ttf?t=1691029402206') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
@ -13,6 +13,10 @@
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-export:before {
|
||||||
|
content: "\e791";
|
||||||
|
}
|
||||||
|
|
||||||
.icon-sub-menu:before {
|
.icon-sub-menu:before {
|
||||||
content: "\e86b";
|
content: "\e86b";
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -5,6 +5,13 @@
|
|||||||
"css_prefix_text": "icon-",
|
"css_prefix_text": "icon-",
|
||||||
"description": "",
|
"description": "",
|
||||||
"glyphs": [
|
"glyphs": [
|
||||||
|
{
|
||||||
|
"icon_id": "4765958",
|
||||||
|
"name": "export",
|
||||||
|
"font_class": "export",
|
||||||
|
"unicode": "e791",
|
||||||
|
"unicode_decimal": 59281
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"icon_id": "6343824",
|
"icon_id": "6343824",
|
||||||
"name": "menu",
|
"name": "menu",
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -138,6 +138,10 @@
|
|||||||
新建会话
|
新建会话
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
<el-button type="success" @click="exportChat" plain>
|
||||||
|
<i class="iconfont icon-export"></i>
|
||||||
|
<span>导出会话</span>
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -769,6 +773,15 @@ const updateUser = function (data) {
|
|||||||
loginUser.value.avatar = data.avatar;
|
loginUser.value.avatar = data.avatar;
|
||||||
loginUser.value.nickname = data.nickname;
|
loginUser.value.nickname = data.nickname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 导出会话
|
||||||
|
const exportChat = () => {
|
||||||
|
if (!activeChat.value['chat_id']) {
|
||||||
|
return ElMessage.error("请先选中一个会话")
|
||||||
|
}
|
||||||
|
|
||||||
|
window.open(location.protocol + location.host + '/chat/export?chat_id=' + activeChat.value['chat_id'], '_blank');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="stylus">
|
<style scoped lang="stylus">
|
||||||
@ -776,6 +789,7 @@ const updateUser = function (data) {
|
|||||||
$sideBgColor = #252526;
|
$sideBgColor = #252526;
|
||||||
$borderColor = #4676d0;
|
$borderColor = #4676d0;
|
||||||
#app {
|
#app {
|
||||||
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.common-layout {
|
.common-layout {
|
||||||
@ -978,6 +992,10 @@ $borderColor = #4676d0;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.iconfont {
|
||||||
|
margin-right 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-box {
|
.right-box {
|
||||||
|
Loading…
Reference in New Issue
Block a user