修复开发环境无法获取图片

This commit is contained in:
何童崇 2021-12-16 15:01:41 +08:00
parent aa7125abd1
commit 5c101f55a6
1 changed files with 4 additions and 2 deletions

View File

@ -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}`