diff --git a/frontend/src/components/canvas/utils/utils.js b/frontend/src/components/canvas/utils/utils.js index 6a1438a768..13ea262cb2 100644 --- a/frontend/src/components/canvas/utils/utils.js +++ b/frontend/src/components/canvas/utils/utils.js @@ -218,7 +218,7 @@ export function colorReverse(OldColorValue) { } export function imgUrlTrans(url) { - if(url && url.indexOf('static-resource') > -1){ + if(url && typeof url === 'string' && url.indexOf('static-resource') > -1){ return process.env.VUE_APP_BASE_API + url.replace('/static-resource','static-resource') }else { return url