@@ -1 +1 @@
-VUE_APP_API_URL=http://192.168.10.151:8082
+VUE_APP_API_URL=http://192.168.1.14:8011
@@ -1,6 +1,6 @@
import Stomp from "stompjs";
import store from '../src/store/index'
-var projectconfig = 'ws://192.168.10.151:8082/gyee-websocket'
+var projectconfig = 'ws://192.168.10.22:8082/gyee-websocket'
// ============================一般使用的变量============================
let number = 0;
export const datainit = initialize;
@@ -3,7 +3,7 @@ import Vue from 'vue'
import router from './router'
const http = axios.create({
- baseURL: process.env.VUE_APP_API_URL || '/admin/api',
+ baseURL: process.env.VUE_APP_API_URL || '/api',
// baseURL: process.env.VUE_APP_API_URL,
// baseURL: 'http://192.168.10.168:8080'
})
@@ -19,7 +19,7 @@ export default {
methods: {
fetch() {
this.$http
- .get("/gyee-query/area/list")
+ .get("/thing/station")
.then((res) => {
console.log(res.data);
this.data = res.data;
@@ -7,12 +7,12 @@ module.exports = {
// eslint-loader 是否在保存的时候检查
devServer: {
proxy: {
- '/admin/api': {
- target: 'http://192.168.10.151:8082/',
+ '/api': {
+ target: process.env.VUE_APP_API_URL,
changeOrigin: true,
ws: true,
pathRewrite: {
- '^/admin/api': ''
+ '^/api': ''
}