forked from Gitlink/forgeplus-react
修改图片工具函数
This commit is contained in:
parent
9031da23be
commit
139dfdf7cd
|
@ -13,7 +13,7 @@ export function getImageUrl(path) {
|
||||||
// const local = 'http://localhost:3000'
|
// const local = 'http://localhost:3000'
|
||||||
// const local = 'http://39.105.176.215:49999';
|
// const local = 'http://39.105.176.215:49999';
|
||||||
const local = 'http://111.8.36.180:8000';
|
const local = 'http://111.8.36.180:8000';
|
||||||
path && !path.startsWith('/') && (path = '/'.concat(path));
|
path && !path.startsWith('/') && !path.startsWith('http') && (path = '/'.concat(path));
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
return `${local}${path}`
|
return `${local}${path}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue