Initial commit to Gitea

This commit is contained in:
root
2026-05-04 00:43:20 +08:00
parent 1e0b2b125b
commit d76c7d5eac
422 changed files with 5233 additions and 1514 deletions
+13 -3
View File
@@ -106,6 +106,9 @@
userInfo() {
return store.userInfo
},
queryUserId() {
return this.userInfo && this.userInfo._id ? this.userInfo._id : '__empty__'
},
realNameStatus() {
if (!this.userInfo.realNameAuth) {
return 0
@@ -127,8 +130,8 @@
return [
db.collection("cms-articles-log")
.where({
user_id: this.userInfo._id,
article_id: db.command.neq([])
user_id: this.queryUserId,
article_id: db.command.exists(true)
})
.getTemp(),
db.collection(articleDBName)
@@ -273,6 +276,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() // 初始化导航栏大小
@@ -418,4 +428,4 @@
margin-left: 14rpx;
}
}
</style>
</style>