From 36391b2f02deb80ae4d2a69f67b4644adb787bc9 Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 27 Jun 2023 16:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E5=8D=87=E7=BA=A7=E5=88=B0t?= =?UTF-8?q?s5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/Add-on/ShareView/Command_ShareView.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fef208e7c..088e5c834 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "ts-node": "^10.9.1", "tsconfig-paths": "^3.14.1", "tslib": "^2.4.1", - "typescript": "^4.9.4", + "typescript": "^5.1.3", "url-loader": "^4.1.1", "wallaby-webpack": "^3.9.16", "webpack": "^5.75.0", diff --git a/src/Add-on/ShareView/Command_ShareView.ts b/src/Add-on/ShareView/Command_ShareView.ts index 09f09bf28..ae1a891b6 100644 --- a/src/Add-on/ShareView/Command_ShareView.ts +++ b/src/Add-on/ShareView/Command_ShareView.ts @@ -96,7 +96,7 @@ export class Command_ShareView implements Command const formData = new FormData(); let fileServer = FileServer.GetInstance(); formData.append("name", fileServer.currentFileInfo.name); - formData.append("logo", GetCurrentViewPreViewImage(), "cover.jpg"); + formData.append("logo", GetCurrentViewPreViewImage() as Blob, "cover.jpg"); formData.append("file", deflate(f.ToString())); formData.append("props", props);