| | |
| | | import axios from 'axios' |
| | | import api from './assets/api/controller.js' |
| | | import swal from 'sweetalert' |
| | | import print from './components/view/report/print' |
| | | |
| | | Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80/"; //前端本地端口 |
| | | Vue.prototype.HaveJson = (val) => { |
| | |
| | | Vue.use(qs); |
| | | Vue.use(api); |
| | | |
| | | const javaApi = 'http://192.168.110.167:8001/' |
| | | // const javaApi = 'http://192.168.14.249:8001' |
| | | |
| | | const javaApi = 'http://127.0.0.1:8001/' |
| | | |
| | | |
| | | |
| | | axios.defaults.baseURL = javaApi |
| | | axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' |
| | |
| | | // console.log(config.data) |
| | | } |
| | | |
| | | |
| | | return config |
| | | }, function(error) { |
| | | return Promise.reject(error) |