mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-04 21:18:22 +08:00
[web] fix editor bugs
This commit is contained in:
parent
2bc73547d7
commit
e317076b63
@ -14,7 +14,7 @@ export class HttpCommon
|
|||||||
{
|
{
|
||||||
if (process.env.NODE_ENV === 'development' ||
|
if (process.env.NODE_ENV === 'development' ||
|
||||||
window.location.hostname === 'localhost') {
|
window.location.hostname === 'localhost') {
|
||||||
axios.defaults.baseURL = 'http://139.198.158.103:9096';
|
axios.defaults.baseURL = 'http://localhost:9096';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
axios.defaults.baseURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
|
axios.defaults.baseURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
|
||||||
|
Loading…
Reference in New Issue
Block a user