Initial commit to Gitea
This commit is contained in:
@@ -97,6 +97,9 @@
|
||||
userInfo() {
|
||||
return store.userInfo
|
||||
},
|
||||
queryUserId() {
|
||||
return this.userInfo && this.userInfo._id ? this.userInfo._id : '__empty__'
|
||||
},
|
||||
realNameStatus() {
|
||||
if (!this.userInfo.realNameAuth) {
|
||||
return 0
|
||||
@@ -118,7 +121,7 @@
|
||||
return [
|
||||
db.collection("cms-articles-like")
|
||||
.where({
|
||||
user_id: this.userInfo._id,
|
||||
user_id: this.queryUserId,
|
||||
})
|
||||
.getTemp(),
|
||||
db.collection(articleDBName)
|
||||
@@ -258,6 +261,13 @@
|
||||
return uniCloud.importObject("cms-articles-log").getHistory(this.userInfo._id);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'userInfo._id'(val, oldVal) {
|
||||
if (val && val !== oldVal && this.$refs.udb) {
|
||||
this.refresh()
|
||||
}
|
||||
}
|
||||
},
|
||||
async onReady() {
|
||||
// #ifdef MP
|
||||
this.initNavBarSize() // 初始化导航栏大小
|
||||
@@ -349,4 +359,4 @@
|
||||
.pages .uni-list ::v-deep .uni-list--border:after {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user