|
@@ -172,7 +172,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<div class="invite_box">
|
|
|
- <div class="invite_title" ref="inviteT">{{userinfo.name}}邀请您参加思维网格</div>
|
|
|
+ <div class="invite_title" ref="inviteT">{{userinfo ? this.userinfo.name: "用户"}}邀请您参加思维网格</div>
|
|
|
<div class="line"></div>
|
|
|
<div class="invite_link">
|
|
|
<div ref="invite1">复制链接加入房间:</div>
|
|
@@ -410,8 +410,8 @@ export default {
|
|
|
this.$message.error("至少上传一个视频或者一张图片");
|
|
|
return;
|
|
|
}
|
|
|
- if(!this.data[this.gIndex]){
|
|
|
- this.data[this.gIndex] = {}
|
|
|
+ if (!this.data[this.gIndex]) {
|
|
|
+ this.data[this.gIndex] = {};
|
|
|
}
|
|
|
if (this.file.photo) {
|
|
|
this.data[this.gIndex].photo = this.file.photo;
|
|
@@ -424,19 +424,19 @@ export default {
|
|
|
if (this.data[this.gIndex].remarks) {
|
|
|
this.data[this.gIndex].remarks[0] = {
|
|
|
remarks: this.remarks,
|
|
|
- userid: this.userinfo.userid,
|
|
|
- username: this.userinfo.name,
|
|
|
+ userid: this.userinfo ? this.userinfo.userid : this.userid,
|
|
|
+ username: this.userinfo ? this.userinfo.name : "用户",
|
|
|
};
|
|
|
} else {
|
|
|
this.data[this.gIndex].remarks = [
|
|
|
{
|
|
|
remarks: this.remarks,
|
|
|
- userid: this.userinfo.userid,
|
|
|
- username: this.userinfo.name,
|
|
|
+ userid: this.userinfo ? this.userinfo.userid : this.userid,
|
|
|
+ username: this.userinfo ? this.userinfo.name : "用户",
|
|
|
},
|
|
|
];
|
|
|
}
|
|
|
- this.data[this.gIndex].userid = this.userinfo.userid;
|
|
|
+ this.data[this.gIndex].userid = this.userinfo ? this.userinfo.userid : this.userid;
|
|
|
} else {
|
|
|
if (!this.remarks) {
|
|
|
this.$message.error("备注不能为空");
|
|
@@ -448,8 +448,8 @@ export default {
|
|
|
a++;
|
|
|
this.data[this.gIndex].remarks[i] = {
|
|
|
remarks: this.remarks,
|
|
|
- userid: this.userinfo.userid,
|
|
|
- username: this.userinfo.name,
|
|
|
+ userid: this.userinfo ? this.userinfo.userid : this.userid,
|
|
|
+ username: this.userinfo ? this.userinfo.name : "用户",
|
|
|
};
|
|
|
break;
|
|
|
}
|
|
@@ -457,8 +457,8 @@ export default {
|
|
|
if (a < 1) {
|
|
|
this.data[this.gIndex].remarks.push({
|
|
|
remarks: this.remarks,
|
|
|
- userid: this.userinfo.userid,
|
|
|
- username: this.userinfo.name,
|
|
|
+ userid: this.userinfo ? this.userinfo.userid : this.userid,
|
|
|
+ username: this.userinfo ? this.userinfo.name : "用户",
|
|
|
});
|
|
|
}
|
|
|
}
|