ai-chat-bot-interface 1.6.6 → 1.6.7

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.6.6",
4
+ "version": "1.6.7",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "description": "A AI chat bot interface. (private)",
package/src/App.vue CHANGED
@@ -8,8 +8,8 @@ const handleLog = (log) => {
8
8
  <template>
9
9
  <div style="width: 100vw; height: 100vh">
10
10
  <chat-ui
11
- bot-id="555"
12
- token="2222"
11
+ bot-id="7574379096097439754"
12
+ token="sat_cSmj7ZyuePbkEpOKR7F259YuIfp2fjX9rJ3Om2O0gB9JzrGjAk8pSL269rbu8kzr"
13
13
  uid="262598"
14
14
  :def-msg="{ placeholder: '发消息...' }"
15
15
  :show-header="false"
package/src/ChatUi.vue CHANGED
@@ -535,8 +535,8 @@ const chatConv = async (data) => {
535
535
  console.log('======= End ======', historyList.value, isFirst.value);
536
536
  if (isFirst.value) {
537
537
  if (
538
- historyList.value[idx].extra.findIndex(
539
- (item) => item.showType === 'personalForm',
538
+ historyList.value[idx].extra.findIndex((item) =>
539
+ item.hasOwnProperty('showType'),
540
540
  ) === -1
541
541
  ) {
542
542
  historyList.value[idx].extra.push({ showType: 'personalForm' });