vue2-client 1.9.168 → 1.9.169

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.9.168",
3
+ "version": "1.9.169",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -42,6 +42,16 @@ const showModal = () => {
42
42
  })
43
43
  }
44
44
 
45
+ const aiModelChange = (value) => {
46
+ xConversationRef.value.init({
47
+ type: 'AI',
48
+ streamApi: '/ai/chat',
49
+ chatId: props.chatId,
50
+ aiModel: value,
51
+ serviceName: process.env.VUE_APP_SERVICE_NAME
52
+ })
53
+ }
54
+
45
55
  const handleOk = () => {
46
56
  isModalVisible.value = false
47
57
  }
@@ -105,7 +115,7 @@ const onMouseDown = (e) => {
105
115
  <template #title>
106
116
  <div :style="{width:'100%',cursor:'move'}" @mousedown="onMouseDown">
107
117
  AI对话
108
- <a-select style="width: 120px" v-model="aiModel" placeholder="选择模型">
118
+ <a-select style="width: 120px" v-model="aiModel" placeholder="选择模型" @change="aiModelChange">
109
119
  <a-select-option :value="model.value" v-for="model in aiModelOptions" :key="model.value">
110
120
  {{ model.label }}
111
121
  </a-select-option>
@@ -86,7 +86,7 @@ routerResource.example = {
86
86
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
87
87
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
88
88
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
89
- component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
89
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
90
90
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
91
91
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
92
92
  // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
@@ -96,7 +96,7 @@ routerResource.example = {
96
96
  // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
97
97
  // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
98
98
  // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
99
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
99
+ component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
100
100
  meta: {
101
101
  // 菜单中不显示
102
102
  invisible: true,
package/vue.config.js CHANGED
@@ -58,8 +58,9 @@ module.exports = {
58
58
  changeOrigin: true
59
59
  },
60
60
  '/api/af-liuli': {
61
- pathRewrite: { '^/api/af-liuli/': '/' },
62
- target: 'http://127.0.0.1:9014',
61
+ // pathRewrite: { '^/api/af-liuli/': '/' },
62
+ // target: 'http://127.0.0.1:9014',
63
+ target: revenue,
63
64
  changeOrigin: true
64
65
  },
65
66
  '/api/af-gaslink': {