diff --git a/app/globals.css b/app/globals.css index 8236887..b6242b3 100644 --- a/app/globals.css +++ b/app/globals.css @@ -273,14 +273,14 @@ textarea { .adm-dialog .adm-dialog-content { max-height: none; height: 100%; - color: #5c5c5c; + color: #ffffff85; } .adm-dialog .adm-dialog-header { font-size: large; } .adm-dialog .adm-dialog-footer .adm-dialog-action-row { & > :first-child { - color: #5c5c5c; + color: #ffffff80; } & > :last-child { color: #ffffff; diff --git a/app/space/setting/agencySetting/page.jsx b/app/space/setting/agencySetting/page.jsx index d49281a..1e0db5f 100644 --- a/app/space/setting/agencySetting/page.jsx +++ b/app/space/setting/agencySetting/page.jsx @@ -330,7 +330,7 @@ const ModalMask = ({ setModalVisible, zid, router }) => { } }; return ( -
+
搜索用户: ({ - url: it.urls[0], + url: it.cover_urls[0], id: it.id, })), }); @@ -88,18 +88,22 @@ export default function EditPost() { if (isSubmitting) return; setIsSubmitting(true); const { content, imageAssets, videoAssets } = formData; - const newImageMedia = imageAssets.filter((it) => it.id == undefined); const type = formData.imageAssets.length > 0 ? 1 : 2; - const media = await multiUploadImage( - type == 1 ? newImageMedia : videoAssets, - type + const newMedia = [...(type == 1 ? imageAssets : videoAssets)].filter( + (it) => it.id == undefined ); + const media = await multiUploadImage(newMedia, type); // const media = await multiUploadImage(imageAssets); if (type == 1) { media.image_ids = [ ...imageAssets.filter((it) => it.id != undefined).map((it) => it.id), ...media.image_ids, ]; + } else { + media.video_ids = [ + ...videoAssets.filter((it) => it.id != undefined).map((it) => it.id), + ...media.video_ids, + ]; } try { const body = { @@ -211,6 +215,8 @@ export default function EditPost() { accept="video/*" id="uploadAvatarBtn2" assets={formData.videoAssets} + videoSrc={data?.media_component?.videos[0]?.urls[0]} + maxLength={1} getImgs={(imgs) => { setFormData((old) => ({ ...old,