Commit 57672481 authored by nanahira's avatar nanahira

fix http in using base64 pic

parent b5c5b30e
......@@ -194,7 +194,7 @@ export default class PicsContainer
if (this.config.useAssets && this.assets) {
const uploadedUrl = await this.assets.upload(url, undefined);
url = uploadedUrl;
} else if (this.config.useBase64) {
} else if (this.config.useBase64 && url.startsWith('http')) {
const buf = await this._http.get(url, {
responseType: 'arraybuffer',
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment