mirror da
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
update: 增加图库可进行配置是否使用瀑布流还是列表、调整文章详情和关于页面图片配置
This commit is contained in:
@@ -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() {
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user