1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +08:00

feat: 新增首页轮播支持配置

This commit is contained in:
小莫唐尼
2025-06-15 18:38:52 +08:00
parent 8963ba1921
commit 2fd83a7814
17 changed files with 325 additions and 101 deletions
+9 -6
View File
@@ -85,9 +85,12 @@ export default {
};
},
computed: {
haloConfigs() {
return this.$tm.vx.getters().getConfigs;
},
haloConfigs() {
return this.$tm.vx.getters().getConfigs;
},
calcAuditModeEnabled() {
return this.haloConfigs.auditConfig.auditModeEnabled
},
},
onLoad() {
this.fnSetPageTitle('内容搜索');
@@ -130,11 +133,11 @@ export default {
}
},
fnGetData() {
if (this.haloConfigs.basicConfig.auditModeEnabled) {
return;
if (this.calcAuditModeEnabled) {
return;
}
// 设置状态为加载中
this.loading = 'loading';
this.loading = 'loading';
this.$httpApi.v2
.getPostListByKeyword(this.queryParams)
.then(res => {