perf: change hostname

This commit is contained in:
zchengo
2023-01-02 14:19:12 +08:00
parent 3c6a818e89
commit 6a4efbe92c
+2 -2
View File
@@ -5,8 +5,8 @@ import { message } from 'ant-design-vue';
const host = window.location.hostname const host = window.location.hostname
switch (host) { switch (host) {
case 'www.zocrm.cloud': case 'zocrm.cloud':
axios.defaults.baseURL = 'https://www.zocrm.cloud/api' axios.defaults.baseURL = 'https://zocrm.cloud/api'
break; break;
default: default:
axios.defaults.baseURL = 'http://127.0.0.1:8000/api' axios.defaults.baseURL = 'http://127.0.0.1:8000/api'