ai-chat-bot-interface 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-chat-bot-interface",
3
3
  "private": false,
4
- "version": "1.4.4",
4
+ "version": "1.4.5",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "description": "A AI chat bot interface. (private)",
package/src/App.vue CHANGED
@@ -5,8 +5,8 @@ import ChatUi from './ChatUi.vue';
5
5
  <template>
6
6
  <div style="width: 100vw; height: 100vh">
7
7
  <chat-ui
8
- bot-id="5555"
9
- token="pat_88888"
8
+ bot-id="555"
9
+ token="pat_28888"
10
10
  uid="262598"
11
11
  :def-msg="{ placeholder: '发消息...' }"
12
12
  :show-header="true"
@@ -329,7 +329,9 @@ const resizeTextarea = () => {
329
329
  const handleFocus = () => {
330
330
  nextTick(() => {
331
331
  window.scrollTo({
332
- top: Math.round((53 * window.innerHeight) / window.innerWidth + 300), // 滚动到页面的总高度
332
+ top: Math.round(
333
+ 0.7 * window.innerHeight + 0.5476 * window.innerWidth - 416.4,
334
+ ), // 滚动到页面的总高度
333
335
  behavior: 'smooth', // 平滑滚动效果
334
336
  });
335
337
  });