byt-lingxiao-ai 0.3.13 → 0.3.14

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/README.md CHANGED
@@ -43,24 +43,13 @@ yarn add byt-lingxiao-ai
43
43
  ### 基本用法
44
44
 
45
45
  ```javascript
46
- // 引入Vue
47
- import Vue from 'vue'
48
- import App from './App.vue'
49
-
50
- // 引入Element UI
51
- import ElementUI from 'element-ui'
52
- import 'element-ui/lib/theme-chalk/index.css'
53
-
54
- // 引入凌霄AI组件
46
+ // 接入智能AI
47
+ import 'byt-lingxiao-ai/dist/index.css'
55
48
  import ChatWindow from 'byt-lingxiao-ai'
56
-
57
- // 注册组件
58
- Vue.use(ElementUI)
59
- Vue.use(ChatWindow)
60
-
61
- new Vue({
62
- render: h => h(App)
63
- }).$mount('#app')
49
+ Vue.use(ChatWindow, {
50
+ router,
51
+ store
52
+ })
64
53
  ```
65
54
 
66
55
  ```html
@@ -13,7 +13,9 @@ export default {
13
13
  methods: {
14
14
  initWebSocket() {
15
15
  try {
16
- this.ws = new WebSocket('ws://10.2.233.41:9999');
16
+ // this.ws = new WebSocket('ws://10.2.233.41:9999');
17
+ // 测试
18
+ this.ws = new WebSocket('ws://192.168.8.9:9999');
17
19
  this.ws.binaryType = 'arraybuffer';
18
20
 
19
21
  this.ws.onopen = async () => {
@@ -31315,7 +31315,9 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
31315
31315
  methods: {
31316
31316
  initWebSocket() {
31317
31317
  try {
31318
- this.ws = new WebSocket('ws://10.2.233.41:9999');
31318
+ // this.ws = new WebSocket('ws://10.2.233.41:9999');
31319
+ // 测试
31320
+ this.ws = new WebSocket('ws://192.168.8.9:9999');
31319
31321
  this.ws.binaryType = 'arraybuffer';
31320
31322
  this.ws.onopen = async () => {
31321
31323
  console.log('WebSocket 连接成功');