af-mobile-client-vue3 1.4.47 → 1.4.48

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/src/main.ts CHANGED
@@ -4,15 +4,17 @@ import Plugins from '@af-mobile-client-vue3/plugins'
4
4
  import router from '@af-mobile-client-vue3/router'
5
5
  import pinia from '@af-mobile-client-vue3/stores'
6
6
  import { i18n } from '@af-mobile-client-vue3/utils/i18n'
7
+ // MateChat ai 对话相关
8
+ import MateChat from '@matechat/core'
7
9
  import { createHead } from '@unhead/vue/client'
8
10
  import { createApp } from 'vue'
9
11
  import 'virtual:uno.css'
10
12
  import '@af-mobile-client-vue3/styles/app.less'
13
+
11
14
  import '@af-mobile-client-vue3/styles/var.less'
12
15
 
13
16
  // Vant 桌面端适配
14
17
  import '@vant/touch-emulator'
15
-
16
18
  /* --------------------------------
17
19
  Vant 中有个别组件是以函数的形式提供的,
18
20
  包括 Toast,Dialog,Notify 和 ImagePreview 组件。
@@ -22,7 +24,6 @@ Vant 中有个别组件是以函数的形式提供的,
22
24
  import 'vant/es/toast/style'
23
25
  import 'vant/es/dialog/style'
24
26
  import 'vant/es/notify/style'
25
- import 'vant/es/image-preview/style'
26
27
 
27
28
  (async () => {
28
29
  const app = createApp(App)
@@ -33,6 +34,7 @@ import 'vant/es/image-preview/style'
33
34
  app.use(pinia)
34
35
  app.use(i18n)
35
36
  app.use(Plugins)
37
+ app.use(MateChat)
36
38
 
37
39
  await bootstrap(router)
38
40
  app.mount('#system-app')