Debug use: developer use

This commit is contained in:
Roy
2023-06-06 13:52:40 +08:00
parent 6257db5699
commit 092bb369a9
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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
+4 -4
View File
@@ -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]),
+2 -2
View File
@@ -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,