Skip to content

Commit

Permalink
fix: use remote img when dev
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Dec 3, 2024
1 parent 39dfecf commit 4aafa57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/web/pages/toolbox/components/uplodadLogo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ function getBase64(img: any, callback: any) {

const UploadLogo = (props: any) => {
const { id, logoUrl } = props.tool;
const [imageUrl, setImageUrl] = useState(logoUrl ? '/' + logoUrl : undefined);
const [imageUrl, setImageUrl] = useState(
logoUrl
? (process.env.NODE_ENV !== 'production' ? `http://172.16.100.225:7001/` : '/') +
logoUrl
: undefined
);
const [loading, setLoading] = useState(false);

// 上传按钮
Expand Down

0 comments on commit 4aafa57

Please sign in to comment.