修改图片工具函数

This commit is contained in:
何童崇 2022-06-08 11:32:15 +08:00
parent 9031da23be
commit 139dfdf7cd
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export function getImageUrl(path) {
// const local = 'http://localhost:3000'
// const local = 'http://39.105.176.215:49999';
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) {
return `${local}${path}`
}