修改请求路径前缀

master
yujialong 3 years ago
parent 15be9efc26
commit 616e3df700
  1. 4
      src/utils/api.js

@ -1,8 +1,8 @@
// let host = 'http://192.168.31.125:8081/python'//林
// let host = 'http://192.168.31.152:8081/python'//榕
let host = ''
if(location.host.includes('liuwanr.cn') || process.env.NODE_ENV === 'development'){
host = 'http://www.liuwanr.cn/python'
if(location.host.includes('120.78.198.231') || process.env.NODE_ENV === 'development'){
host = 'http://120.78.198.231:8081/python'
}else{
host = 'http://www.occupationlab.com/python'
}

Loading…
Cancel
Save