优化滚动

This commit is contained in:
aixianling
2024-07-10 09:39:27 +08:00
parent 60a4d6a1c8
commit 0fd8a0e1fa
2 changed files with 2 additions and 14 deletions

View File

@@ -15,19 +15,7 @@ export default {
expand: false,
loading: false,
prompt: "",
history: [
// {avatar: "https://cdn.sinoecare.com/i/2024/06/04/665ec6f5ef213.png", msg: "你好", uid: "ai"},
// {
// avatar: "",
// msg: "AI 聊天机器人 ChatGPT 近日突然出现闪崩,响应超时或无法正常工作,故障长达近 7 小时。全球大量用户处于焦虑等待,因为许多人对此已经产生了依赖,工作不能自理。一些备选工具如 Perplexity、Claude 等也遭遇故障。摩根士丹利的数据显示ChatGPT 故障后,谷歌 AI 聊天机器人 Gemini 搜索量激增 60%,达 327058 次,显示出用户把它视为 ChatGPT 的直接替代选项\n" +
// "\n" +
// "作者RTE开发者社区\n" +
// "链接https://juejin.cn/post/7377025870630862874\n" +
// "来源:稀土掘金\n" +
// "著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。",
// uid: "me"
// },
],
history: [],
apps: [
{label: "日常助理", icon: "https://cdn.sinoecare.com/i/2024/07/04/66864da37fc2b.png"},
{label: "文本助理", icon: "https://cdn.sinoecare.com/i/2024/07/04/66864da1684ad.png"},

View File

@@ -21,7 +21,7 @@ export default {
},
watch: {
lastMessage() {
this.scrollBottom()
this.$nextTick(() => this.scrollBottom())
}
},
methods: {