We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39dfecf commit 4aafa57Copy full SHA for 4aafa57
app/web/pages/toolbox/components/uplodadLogo/index.tsx
@@ -15,7 +15,12 @@ function getBase64(img: any, callback: any) {
15
16
const UploadLogo = (props: any) => {
17
const { id, logoUrl } = props.tool;
18
- const [imageUrl, setImageUrl] = useState(logoUrl ? '/' + logoUrl : undefined);
+ const [imageUrl, setImageUrl] = useState(
19
+ logoUrl
20
+ ? (process.env.NODE_ENV !== 'production' ? `http://172.16.100.225:7001/` : '/') +
21
22
+ : undefined
23
+ );
24
const [loading, setLoading] = useState(false);
25
26
// 上传按钮
0 commit comments