Initial commit to Gitea
This commit is contained in:
@@ -127,6 +127,9 @@
|
||||
userInfo() {
|
||||
return store.userInfo
|
||||
},
|
||||
queryUserId() {
|
||||
return this.userInfo && this.userInfo._id ? this.userInfo._id : '__empty__'
|
||||
},
|
||||
realNameStatus() {
|
||||
if (!this.userInfo.realNameAuth) {
|
||||
return 0
|
||||
@@ -147,7 +150,7 @@
|
||||
return [
|
||||
db.collection("comment")
|
||||
.where({
|
||||
parent_author_id: this.userInfo._id,
|
||||
parent_author_id: this.queryUserId,
|
||||
})
|
||||
.getTemp(),
|
||||
db.collection("uni-id-users")
|
||||
@@ -407,6 +410,13 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'userInfo._id'(val, oldVal) {
|
||||
if (val && val !== oldVal && this.$refs.udb) {
|
||||
this.refresh()
|
||||
}
|
||||
}
|
||||
},
|
||||
async onReady() {
|
||||
// #ifdef MP
|
||||
this.initNavBarSize() // 初始化导航栏大小
|
||||
@@ -592,4 +602,4 @@
|
||||
line-height: 12px;
|
||||
padding: 0 0 2px 5px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user