forked from Gitlink/forgeplus-react
修复开发环境无法获取图片
This commit is contained in:
parent
aa7125abd1
commit
5c101f55a6
|
@ -6,12 +6,14 @@ const { Search } = Input;
|
|||
const $ = window.$;
|
||||
const isDev = window.location.port == 3007;
|
||||
const isdev2= window.location.hostname ==='www.educoder.net'
|
||||
export const TEST_HOST = "http://39.105.176.215:49999"
|
||||
// export const TEST_HOST = "http://39.105.176.215:49999"
|
||||
export const TEST_HOST = "http://117.50.100.12:49999";
|
||||
export function getImageUrl(path) {
|
||||
// https://www.educoder.net
|
||||
// https://testbdweb.trustie.net
|
||||
// const local = 'http://localhost:3000'
|
||||
const local = 'http://39.105.176.215:49999';
|
||||
// const local = 'http://39.105.176.215:49999';
|
||||
const local = 'http://117.50.100.12:49999';
|
||||
|
||||
if (isDev) {
|
||||
return `${local}/${path}`
|
||||
|
|
Loading…
Reference in New Issue