修改请求路径前缀

master
yujialong 3 years ago
parent 7cf8b5cfd7
commit c085d05949
  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.125:8081/python'//林
// let host = 'http://192.168.31.152:8081/python'//榕 // let host = 'http://192.168.31.152:8081/python'//榕
let host = '' let host = ''
if(location.host.includes('liuwanr.cn') || process.env.NODE_ENV === 'development'){ if(location.host.includes('120.78.198.231') || process.env.NODE_ENV === 'development'){
host = 'http://www.liuwanr.cn/python' host = 'http://120.78.198.231:8081/python'
}else{ }else{
host = 'http://www.occupationlab.com/python' host = 'http://www.occupationlab.com/python'
} }

Loading…
Cancel
Save