|
@@ -127,13 +127,13 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.req('http://119.3.84.55:31288/embedded/wireless/wifi',(data)=>{
|
|
|
+ this.req('/embedded/wireless/wifi',(data)=>{
|
|
|
this.wifiConfig = data
|
|
|
})
|
|
|
- this.req('http://119.3.84.55:31288/embedded/iot/config',(data)=>{
|
|
|
+ this.req('/embedded/iot/config',(data)=>{
|
|
|
this.iotConfig = data
|
|
|
})
|
|
|
- this.req('http://119.3.84.55:31288/embedded/iot/status',(data)=>{
|
|
|
+ this.req('/embedded/iot/status',(data)=>{
|
|
|
this.iotStatus = data
|
|
|
})
|
|
|
},
|
|
@@ -164,15 +164,15 @@
|
|
|
})
|
|
|
},
|
|
|
doScan(){
|
|
|
- this.req('http://119.3.84.55:31288/embedded/wireless/scan',(data)=>{
|
|
|
+ this.req('/embedded/wireless/scan',(data)=>{
|
|
|
console.log(data)
|
|
|
this.wanList = data
|
|
|
})
|
|
|
},
|
|
|
iotConfigSave(){
|
|
|
- this.post("http://119.3.84.55:31288/embedded/iot/config",this.iotConfig,(code)=>{
|
|
|
+ this.post("/embedded/iot/config",this.iotConfig,(code)=>{
|
|
|
if("success" === code) {
|
|
|
- this.req('http://119.3.84.55:31288/embedded/iot/config',(data)=>{
|
|
|
+ this.req('/embedded/iot/config',(data)=>{
|
|
|
this.iotConfig = data
|
|
|
})
|
|
|
this.$message.info('编辑成功')
|
|
@@ -181,7 +181,7 @@
|
|
|
})
|
|
|
},
|
|
|
configWifi(){
|
|
|
- this.post("",this.wifiConfig,(code)=>{
|
|
|
+ this.post("/embedded/wireless/wifi",this.wifiConfig,(code)=>{
|
|
|
if("success" === code)
|
|
|
this.$message.info('编辑成功')
|
|
|
else
|