forked from github/dataease
fix: 修复背景格式转换错误可能导致背景无法显示问题
This commit is contained in:
parent
ca133ccc64
commit
0549689f56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user