|
@@ -145,17 +145,19 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async lookuserSearch() {
|
|
|
- let data = {};
|
|
|
- data.roomid = this.id;
|
|
|
- data.roomname = this.roomname;
|
|
|
- data.userid = this.user.uid;
|
|
|
- data.username = this.user.name;
|
|
|
- const res = await this.lookuserFetch(data);
|
|
|
- // 根据房间id查询房间详细信息
|
|
|
- let result = await this.fetch(this.id);
|
|
|
- if (this.$checkRes(result)) {
|
|
|
- console.log(result.data);
|
|
|
- this.$set(this, `roomInfos`, result.data);
|
|
|
+ if (this.user.uid) {
|
|
|
+ let data = {};
|
|
|
+ data.roomid = this.id;
|
|
|
+ data.roomname = this.roomname;
|
|
|
+ data.userid = this.user.uid;
|
|
|
+ data.username = this.user.name;
|
|
|
+ const res = await this.lookuserFetch(data);
|
|
|
+ // 根据房间id查询房间详细信息
|
|
|
+ let result = await this.fetch(this.id);
|
|
|
+ if (this.$checkRes(result)) {
|
|
|
+ console.log(result.data);
|
|
|
+ this.$set(this, `roomInfos`, result.data);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
async lookusercountsel() {
|