af-mobile-client-vue3 1.3.83 → 1.3.84

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,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.3.83",
4
+ "version": "1.3.84",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -8,7 +8,7 @@ import {
8
8
  Icon as VanIcon,
9
9
  Uploader as vanUploader,
10
10
  } from 'vant'
11
- import { ref } from 'vue'
11
+ import { inject, ref } from 'vue'
12
12
 
13
13
  interface WatermarkConfig {
14
14
  fontSize?: number | string
@@ -34,6 +34,7 @@ const emit = defineEmits(['updateFileList', 'updateAllFileList'])
34
34
 
35
35
  const imageList = ref<Array<any>>(props.imageList ?? [])
36
36
 
37
+ const parentData: any = inject('provideParent')
37
38
  // 浏览器模式:隐藏的文件输入(选择 / 拍照)
38
39
  const fileInputRef = ref<HTMLInputElement | undefined>()
39
40
  const cameraInputRef = ref<HTMLInputElement | undefined>()
@@ -220,6 +221,7 @@ function handlePhotoUpload(photoData: any) {
220
221
  f_operator: 'server',
221
222
  imgPath: photoData.filePath,
222
223
  urlPath: `/api/${import.meta.env.VITE_APP_SYSTEM_NAME}/resource/upload`,
224
+ commonId: parentData.commonId ?? '',
223
225
  }
224
226
  if (props.isAsyncUpload) {
225
227
  // 添加上传队列