|
@@ -31,17 +31,15 @@ export default {
|
|
|
// this.tongji();
|
|
|
// },
|
|
|
methods: {
|
|
|
- ...lookuser(['looknumber']),
|
|
|
+ ...lookuser(['query']),
|
|
|
async search() {
|
|
|
- const data = await this.looknumber();
|
|
|
+ const data = await this.query();
|
|
|
this.$set(this, `roomInfo`, data.data);
|
|
|
console.log(this.roomInfo);
|
|
|
this.tongji();
|
|
|
},
|
|
|
tongji() {
|
|
|
const data = [];
|
|
|
- console.log(this.roomInfo);
|
|
|
-
|
|
|
for (const room of this.roomInfo) {
|
|
|
data.push({ 房间号: room.name, 观看人数: room.number });
|
|
|
}
|