Commit dc5c1125 by cwq0219

获取接口数据

1 parent 08fd0b68
......@@ -87,16 +87,9 @@ export default {
mounted() {
getInfo.req('/roleList').then(res => {
this.roleData.data = res.roleData
console.log(this.roleData.data)
})
},
methods: {
// getData() {
// getInfo.req('/roleList').then(res => {
// this.roleData.data = res
// console.log(res)
// })
// },
message(message, type) {
type && this.$message({
showClose: true,
......
......@@ -118,7 +118,6 @@ export default {
mounted() {
getInfo.req('/userList').then(res => {
this.userData.data = res.userData
console.log(this.userData.data)
})
},
methods: {
......@@ -172,7 +171,7 @@ export default {
.search-w250 {
width: 250px;
}
.m-b8{
margin-bottom: 8px;
.m-b8 {
margin-bottom: 8px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!