Browse Source

http请求

yantai_master
mk 2 years ago
parent
commit
aafa2f408e
  1. 4
      src/views/modules/shequzhili/videoWall/videoDialog.vue

4
src/views/modules/shequzhili/videoWall/videoDialog.vue

@ -32,7 +32,7 @@
}, },
getAuthCameras(token){ getAuthCameras(token){
var that=this; var that=this;
this.$axios.post("http://172.20.41.195:9006/video/api/getAuthCameras",null,{ this.$http.post("http://172.20.41.195:9006/video/api/getAuthCameras",null,{
headers: { headers: {
Authorization: token Authorization: token
}}) }})
@ -41,7 +41,7 @@
}); });
}, },
getLogin(){ getLogin(){
this.$axios this.$http
.post("http://172.20.41.195:9006/video/api/login",this.userData) .post("http://172.20.41.195:9006/video/api/login",this.userData)
.then((res) => { .then((res) => {
this.token=res.data.data.token; this.token=res.data.data.token;

Loading…
Cancel
Save