af-mobile-client-vue3 1.3.97 → 1.3.99

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.97",
4
+ "version": "1.3.99",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -225,7 +225,7 @@ function handlePhotoUpload(photoData: any) {
225
225
  f_operator: 'server',
226
226
  imgPath: photoData.filePath,
227
227
  urlPath: `/api/${import.meta.env.VITE_APP_SYSTEM_NAME}/resource/upload`,
228
- commonId: parentData.commonId.value ?? '',
228
+ commonId: parentData?.commonId?.value ?? '',
229
229
  }
230
230
  if (props.isAsyncUpload) {
231
231
  // 添加上传队列
@@ -170,7 +170,7 @@ const errorMessage = ref('')
170
170
  const showTreeSelect = ref(false)
171
171
  const treeValue = ref('')
172
172
  // 懒加载 最后检索版本
173
- let lastFetchId = ref(0)
173
+ const lastFetchId = ref(0)
174
174
 
175
175
  // 登录信息 (可以在配置的动态函数中使用 this.setupState 获取到当前组件内的全部函数和变量 例:this.setupState.userState)
176
176
  const userState = useUserStore().getLogin()
@@ -979,8 +979,8 @@ async function handleLazySearch(searchText: string) {
979
979
  Object.assign(value, getDataParams[attr.model])
980
980
  }
981
981
 
982
- lastFetchId.value ++
983
- const fetchId = this.lastFetchId
982
+ lastFetchId.value++
983
+ const fetchId = lastFetchId.value
984
984
  // 根据搜索关键词过滤结果
985
985
  const results = await runLogic(logicName, value, serviceName) as any
986
986
  if (fetchId !== lastFetchId.value) {