From e01fbaa9af19d46fb5c86c56ffbee0e369f28d3c Mon Sep 17 00:00:00 2001 From: al Date: Wed, 6 Nov 2024 11:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/UploadImgs/index.js | 33 +++++-------------- utils/tools.js | 59 ++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 25 deletions(-) diff --git a/components/UploadImgs/index.js b/components/UploadImgs/index.js index 363b7ad..5442470 100644 --- a/components/UploadImgs/index.js +++ b/components/UploadImgs/index.js @@ -4,6 +4,7 @@ import React, { useEffect, useState } from "react"; import { DotLoading, Image, Toast, ImageViewer, Modal } from "antd-mobile"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAdd, faClose, faPlay } from "@fortawesome/free-solid-svg-icons"; +import { getVideoBase64 } from "@/utils/tools"; export default function UploadImgs({ assets, getImgs, @@ -86,7 +87,7 @@ export default function UploadImgs({ } else { Modal.show({ content: ( -