jobsys-explore 4.7.3 → 4.7.5

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.
@@ -214,9 +214,13 @@ export default defineComponent({
214
214
  const uploaderProvider = inject(EX_UPLOADER, () => ({}))
215
215
  const formProvider = inject(EX_FORM, () => ({}))
216
216
 
217
+ // 初始化表单数据
218
+ const dataForInit = ref(props.data)
219
+
217
220
  watch(
218
221
  () => props.data,
219
222
  (newV) => {
223
+ dataForInit.value = newV
220
224
  initFormData(newV || false)
221
225
  },
222
226
  )
@@ -234,13 +238,13 @@ export default defineComponent({
234
238
  watch(
235
239
  () => formItems.value,
236
240
  () => {
237
- initFormData(props.data || false)
241
+ initFormData(dataForInit.value || false)
238
242
  },
239
243
  )
240
244
 
241
245
  const init = (data) => {
242
246
  state.isInitializing = false
243
- initFormData(data || props.data || false)
247
+ initFormData(data || dataForInit.value || false)
244
248
  }
245
249
 
246
250
  onMounted(() => {
@@ -315,6 +319,7 @@ export default defineComponent({
315
319
  } else if (formProvider.afterFetched && isFunction(formProvider.afterFetched)) {
316
320
  res = formProvider.afterFetched(res)
317
321
  }
322
+ dataForInit.value = res
318
323
  //有可能出现 isInitializing 未生效 skeleton 还未关闭的情况
319
324
  nextTick(() => {
320
325
  initFormData(res)
@@ -137,6 +137,8 @@ export default defineComponent({
137
137
  }
138
138
  )
139
139
  }
140
+
141
+ return fileList || []
140
142
  }
141
143
 
142
144
  const submitFile = () => {