mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-09-12 16:40:40 +08:00
feat: 接入小程序链接与审核配置公开接口
- 友链接入:friend-links 双 tab(站点/小程序)、小程序详情弹窗(太阳码长按保存/地址复制/预览图轮播/作者信息)、申请收录弹窗(POST /submissions) - 审核配置接入:新增 getAuditData,移除旧 mockJson,9 页审核模式改为真实数据按 name 过滤,友链站点 tab 按 LinkGroup 过滤、小程序 tab 隐藏 - 修复:补 uni.getLocale mock、pages.json vitest alias、getI18nText 无占位符容错、getPostList 参数类型 Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
This commit is contained in:
@@ -71,7 +71,7 @@ const bloggerInfo = computed(() => {
|
||||
}
|
||||
})
|
||||
|
||||
const calcAuditModeEnabled = computed(() => !!haloConfigs.value.auditConfig?.auditModeEnabled)
|
||||
const calcAuditModeEnabled = computed(() => appConfigStore.auditModeEnabled)
|
||||
|
||||
const calcIsShowComment = computed(() => !!postDetailConfig.value?.showComment)
|
||||
|
||||
@@ -306,13 +306,13 @@ async function getVerificationCode() {
|
||||
|
||||
/* ---------------- 评论 ---------------- */
|
||||
function handleToComment() {
|
||||
console.log('calcIsShowComment.value',calcIsShowComment.value)
|
||||
console.log('result.value',result.value)
|
||||
if (!result.value){
|
||||
return
|
||||
console.log('calcIsShowComment.value', calcIsShowComment.value)
|
||||
console.log('result.value', result.value)
|
||||
if (!result.value) {
|
||||
return
|
||||
}
|
||||
if (!calcIsShowComment.value){
|
||||
return
|
||||
if (!calcIsShowComment.value) {
|
||||
return
|
||||
}
|
||||
if (!result.value.spec.allowComment) {
|
||||
uni.showToast({ icon: 'none', title: '文章已开启禁止评论!' })
|
||||
@@ -715,7 +715,7 @@ const globalAppSettings = computed(() => settingStore.settings)
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.app-page {
|
||||
.app-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user