Commit dc5c1125 by cwq0219

获取接口数据

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