vue2-client 1.9.165 → 1.9.167

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.165",
3
+ "version": "1.9.167",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
package/src/App.vue CHANGED
@@ -145,6 +145,10 @@ export default {
145
145
  }
146
146
  },
147
147
  setHtmlTitle () {
148
+ // 微应用下不设置title
149
+ if (window.__MICRO_APP_ENVIRONMENT__) {
150
+ return
151
+ }
148
152
  const route = this.$route
149
153
  const key = route.path === '/' ? 'home.name' : getI18nKey(route.matched[route.matched.length - 1].path)
150
154
  document.title = process.env.VUE_APP_NAME + ' | ' + this.$t(key)
@@ -22,12 +22,12 @@ const props = defineProps({
22
22
  const showModal = () => {
23
23
  isModalVisible.value = true
24
24
  getConfigByNameAsync('ai_config').then(res => {
25
- const options = res.modelProviders[0].models.map(i => {
26
- return {
27
- label: i,
28
- value: i
29
- }
30
- })
25
+ const options = res.modelProviders.flatMap(provider =>
26
+ provider.models.map(model => ({
27
+ label: model,
28
+ value: model
29
+ }))
30
+ )
31
31
  aiModelOptions.value = options
32
32
  aiModel.value = options[0].value
33
33
  nextTick(() => {
@@ -48,7 +48,7 @@ const handleOk = () => {
48
48
 
49
49
  const state = ref({
50
50
  styleTop: 80,
51
- styleLeft: 470,
51
+ styleLeft: 460,
52
52
  })
53
53
 
54
54
  const dialogStyle = computed(() => {
@@ -5,7 +5,7 @@
5
5
  ref="selectForm"
6
6
  :zIndex="1001"
7
7
  :model="form"
8
- v-bind="formItemLayout"
8
+ v-bind="formItemLayoutGen"
9
9
  :layout="layout"
10
10
  :rules="rules">
11
11
  <a-row ref="GroupItemRow">
@@ -282,7 +282,7 @@ export default {
282
282
  return item.addOrEdit === 'version'
283
283
  })
284
284
  },
285
- formItemLayout () {
285
+ formItemLayoutGen () {
286
286
  if (this.layout === 'horizontal') {
287
287
  return {
288
288
  labelCol: { span: 4, offset: 2 },
@@ -650,6 +650,8 @@ export default {
650
650
  fixedAddForm: this.fixedAddForm,
651
651
  getDataParams: this.getDataParams,
652
652
  layout: res.xAddFormLayout || 'horizontal',
653
+ xAddFormLayoutWidth: res.xAddFormLayoutWidth,
654
+ formItemLayout: res.formItemLayout || {},
653
655
  env: this.env
654
656
  })
655
657
  },