<script>
const app = new Vue({
el:'#app',
data:{
roleLst:[]
},
methods:{
getRoleLst:function(){
let roleUrl = "http://myadv.com/hadmin/role/getRoleLst";
const _this=this;
this.$http.get(roleUrl).then((res)=>{
console.log(res);
_this.roleLst = res.body.data;
})
},
getUpdateIdData:function(id){
alert(id)
}
},
created(){
this.getRoleLst();
}
});
</script>