Debug use: developer use
This commit is contained in:
+2
-2
@@ -103,8 +103,8 @@ Vue.use(VueAxios, axios)
|
||||
Vue.use(Toast)
|
||||
// Vue.use(VueMqtt, 'ws://52.194.17.114:8083')
|
||||
// Vue.use(VueMqtt, 'ws://' + location.href.split('/')[2] + ':8083')
|
||||
// Vue.use(VueMqtt, 'ws://' + '192.168.151.125' + ':8083')
|
||||
Vue.use(VueMqtt, MqttUrl)
|
||||
Vue.use(VueMqtt, 'ws://' + '192.168.1.41' + ':8083')
|
||||
// Vue.use(VueMqtt, MqttUrl)
|
||||
|
||||
Vue.use(SlideOut, {
|
||||
// set default props here
|
||||
|
||||
@@ -287,10 +287,10 @@ export default {
|
||||
header: 'device_update_calibration/0',
|
||||
device: parseInt(mes[1]),
|
||||
}))
|
||||
this.mqttPub(topicSplit[0] + '_user', JSON.stringify({
|
||||
header: 'device_sd_card_status/0',
|
||||
device: parseInt(mes[1]),
|
||||
}))
|
||||
// this.mqttPub(topicSplit[0] + '_user', JSON.stringify({
|
||||
// header: 'device_sd_card_status/0',
|
||||
// device: parseInt(mes[1]),
|
||||
// }))
|
||||
// this.mqttPub(topicSplit[0] + '_user', JSON.stringify({
|
||||
// header: 'device_parent/0',
|
||||
// device: parseInt(mes[1]),
|
||||
|
||||
@@ -12,8 +12,8 @@ import sdcard from './sdcard'
|
||||
import connection from './connection'
|
||||
import project from './project'
|
||||
|
||||
// axios.defaults.baseURL = 'http://192.168.3.211:3000'
|
||||
axios.defaults.baseURL = 'http://' + location.href.split('/')[2].split(':')[0] + ':3000'
|
||||
axios.defaults.baseURL = 'http://192.168.1.41:3000'
|
||||
// axios.defaults.baseURL = 'http://' + location.href.split('/')[2].split(':')[0] + ':3000'
|
||||
|
||||
const api = {
|
||||
axios,
|
||||
|
||||
Reference in New Issue
Block a user