| | |
| | | // baseURL: 'http://192.168.0.105:18080/api', |
| | | // baseURL: 'http://192.168.0.115:82', |
| | | // baseURL: 'http://192.168.0.112:18080', |
| | | baseURL: 'http://192.168.0.115:1888/api', |
| | | // baseURL: 'http://192.168.0.115:1888/api', |
| | | |
| | | // baseURL: 'http://192.168.0.115:82', |
| | | // baseURL: 'http://192.168.0.106:1888/api', |
| | |
| | | |
| | | created () { |
| | | this.currentUrl = this.$route.path |
| | | this.user = getUserInfo() |
| | | console.log(this.user, 4451211) |
| | | this.init(); |
| | | }, |
| | | |
| | | watch: { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | init(){ |
| | | this.user = this.$store.state.user.userInfo; |
| | | }, |
| | | //登出 |
| | | goTOLogout () { |
| | | this.$store.dispatch("LogOut").then(() => { |
| | |
| | | proxy: { |
| | | "/api": { |
| | | // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址 |
| | | target: "http://192.168.0.115:82", |
| | | target: "http://192.168.0.115:1888/api", |
| | | // ws: true, //启用webSocket |
| | | changeOrigin: true, //开启代理跨域 |
| | | pathRewrite: { |