Skip to content

Commit 0653e10

Browse files
committed
fix: 修复下载URL
1 parent 837b280 commit 0653e10

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/preview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@slimkit/plus-editor",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "rich-text editor for plus",
55
"main": "dist/main.bundle.js",
66
"repository": "git@github.com:mutoe/plus-editor.git",

src/uploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async function uploadRemoteImage(params: {
300300

301301
try {
302302
const url = params.src.replace(/^https?:/i, '')
303-
const { headers, data } = await axios.get(params.src, { responseType: 'arraybuffer' })
303+
const { headers, data } = await axios.get(url, { responseType: 'arraybuffer' })
304304

305305
const contentType = (headers['content-type'] || '').toLowerCase().trim()
306306
if (!data || data.byteLength <= 0 || !contentType || !contentType.startsWith('image/')) {

0 commit comments

Comments
 (0)