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

update: 增加图库可进行配置是否使用瀑布流还是列表、调整文章详情和关于页面图片配置

This commit is contained in:
小莫唐尼
2024-07-04 10:42:32 +08:00
parent c312fab4b1
commit ca723bae80
4 changed files with 66 additions and 69 deletions
+8 -15
View File
@@ -132,43 +132,36 @@ export default {
haloConfigs() {
return this.$tm.vx.getters().getConfigs
},
calcDefaultImageConfig() {
return this.haloConfigs.imagesConfig
pageConfig() {
return this.$tm.vx.getters().getConfigs?.pageConfig?.aboutConfig || {};
},
bloggerInfo() {
return this.haloConfigs.authorConfig.blogger;
},
calcProfileStyle() {
const _imgUrlOr = this.calcDefaultImageConfig.aboutProfileImageUrl;
const _imgUrlOr = this.pageConfig.bgImageUrl;
return {
backgroundImage: `url(${this.$utils.checkImageUrl(_imgUrlOr)})`
}
},
calcWaveUrl() {
return this.$utils.checkImageUrl(this.calcDefaultImageConfig.waveImageUrl);
return this.$utils.checkImageUrl(this.pageConfig.waveImageUrl);
},
copyrightConfig() {
return this.haloConfigs.basicConfig.copyrightConfig;
}
},
watch: {
globalAppSettings: {
deep: true,
handler(val) {
this.statisticsShowMore = val.about.showAllCount;
this.fnGetNavList();
}
},
haloConfigs: {
handler(val) {
if (!val) return;
this.fnGetNavList();
},
deep: true,
immediate: true,
handler(val) {
this.fnGetNavList();
}
}
},
created() {
this.statisticsShowMore = this.globalAppSettings.about.showAllCount;
this.fnGetData();
},
onPullDownRefresh() {