gaoluyang
2026-11-05 cb9e409180fca1d773334d78e1cfae06e443fad6
src/views/system/notice/modules/form.vue
@@ -68,6 +68,17 @@
      formData.value = await getNotice(data.id);
      // 设置到 values
      await formApi.setValues(formData.value);
      // 附件回显:FileUpload 需要 { id, name, url, status }
      await formApi.setFieldValue(
        'blobIds',
        (formData.value.attachmentList ?? []).map((item) => ({
          uid: String(item.id),
          name: item.name || '',
          url: item.url || '',
          status: 'done',
          id: item.id,
        })),
      );
    } finally {
      modalApi.unlock();
    }