af-mobile-client-vue3 1.4.49 → 1.4.50
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/build/vite/optimize.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "af-mobile-client-vue3",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.50",
|
|
5
5
|
"packageManager": "pnpm@10.13.1",
|
|
6
6
|
"description": "Vue + Vite component lib",
|
|
7
7
|
"engines": {
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
"commitlint": "commitlint --edit",
|
|
21
21
|
"prepare": "simple-git-hooks"
|
|
22
22
|
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@matechat/core": "^1.10.0"
|
|
25
|
+
},
|
|
23
26
|
"dependencies": {
|
|
24
|
-
"@devui-design/icons": "^1.4.0",
|
|
25
27
|
"@iconify/vue": "4.3.0",
|
|
26
|
-
"@matechat/core": "^1.10.0",
|
|
27
28
|
"@micro-zoe/micro-app": "1.0.0-rc.26",
|
|
28
29
|
"@unhead/vue": "2.0.12",
|
|
29
30
|
"@vant/area-data": "^2.0.0",
|
|
@@ -45,7 +46,6 @@
|
|
|
45
46
|
"vant": "^4.9.21",
|
|
46
47
|
"vconsole": "^3.15.1",
|
|
47
48
|
"vue": "^3.5.17",
|
|
48
|
-
"vue-devui": "^1.6.34",
|
|
49
49
|
"vue-i18n": "^11.1.10",
|
|
50
50
|
"vue-router": "^4.5.1",
|
|
51
51
|
"vue3-hash-calendar": "^1.1.3",
|
package/src/main.ts
CHANGED
|
@@ -4,6 +4,8 @@ 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'
|
|
@@ -32,6 +34,7 @@ import 'vant/es/notify/style'
|
|
|
32
34
|
app.use(pinia)
|
|
33
35
|
app.use(i18n)
|
|
34
36
|
app.use(Plugins)
|
|
37
|
+
app.use(MateChat)
|
|
35
38
|
|
|
36
39
|
await bootstrap(router)
|
|
37
40
|
app.mount('#system-app')
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import liuliLogo from '@af-mobile-client-vue3/assets/img/component/liuli.png'
|
|
3
3
|
// MateChat ai 对话相关
|
|
4
|
-
import {
|
|
5
|
-
import { showToast } from 'vant'
|
|
4
|
+
import { showToast, Button as VanButton } from 'vant'
|
|
6
5
|
import { ref } from 'vue'
|
|
7
|
-
import { Button } from 'vue-devui/button'
|
|
8
6
|
import { chatCompletions } from './apiService'
|
|
9
|
-
import 'vue-devui/button/style.css'
|
|
10
7
|
import 'vant/es/image-preview/style'
|
|
11
|
-
import '@devui-design/icons/icomoon/devui-icon.css'
|
|
12
8
|
|
|
13
9
|
const description = [
|
|
14
10
|
'我是【奥枫天然气公司】官方公众号专属 AI 客服小璃,可以为您提供专业、高效、易懂的天然气相关咨询服务。',
|
|
@@ -182,12 +178,12 @@ async function onSubmit(evt: string) {
|
|
|
182
178
|
style="flex: 1"
|
|
183
179
|
@item-click="onSubmit($event.label)"
|
|
184
180
|
/>
|
|
185
|
-
<
|
|
181
|
+
<VanButton
|
|
186
182
|
style="margin-left: auto"
|
|
187
183
|
icon="add"
|
|
188
|
-
shape="circle"
|
|
189
184
|
title="新建对话"
|
|
190
|
-
size="
|
|
185
|
+
size="small"
|
|
186
|
+
round
|
|
191
187
|
@click="newConversation"
|
|
192
188
|
/>
|
|
193
189
|
</div>
|