Commit 110d8a6a by Sixong.Zhu

cs

parent 6476e76f
Showing with 3 additions and 1 deletions
...@@ -57,7 +57,9 @@ export function rebuildImage(url: string) { ...@@ -57,7 +57,9 @@ export function rebuildImage(url: string) {
const s = sdk.mediaController.buildThumbnail; const s = sdk.mediaController.buildThumbnail;
if (fsImg.test(url)) { if (fsImg.test(url)) {
const m = fsImg.exec(url); const m = fsImg.exec(url);
return sdk.global.baseUrl + s(m[0], 300); if (m && m.length) {
return sdk.global.baseUrl + s(m[0], 300);
}
} }
return url; return url;
} }
......
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 sign in to comment