0.3.3 外网下载修复
This commit is contained in:
@@ -656,9 +656,6 @@ const MediaBlockContent = ({ block, editor }: any) => {
|
||||
>
|
||||
查看原文件
|
||||
</DropdownMenuItem>
|
||||
{assetType === "file" && isOfficeDoc && (
|
||||
<DropdownMenuItem onClick={() => void openWithOnlyOffice()}>使用 ONLYOFFICE 打开</DropdownMenuItem>
|
||||
)}
|
||||
<DropdownMenuItem
|
||||
onClick={() => {
|
||||
void downloadAsset();
|
||||
|
||||
@@ -273,7 +273,7 @@ export function MindmapAiAgentPanel({
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
||||
}, [mindmapId]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -2502,8 +2502,8 @@ const MindmapBlockView = ({
|
||||
const handleImageConfirm = async () => {
|
||||
const url = imageUrl.trim();
|
||||
// 获取原始图片尺寸,如果没有则使用默认值
|
||||
let width = Number(imageWidth) || 0;
|
||||
let height = Number(imageHeight) || 0;
|
||||
const width = Number(imageWidth) || 0;
|
||||
const height = Number(imageHeight) || 0;
|
||||
|
||||
if (!url) {
|
||||
window.alert("请输入图片链接");
|
||||
|
||||
Reference in New Issue
Block a user