修正横幅在移动端的高度问题

dev
truthhun 7 months ago
parent c64f739495
commit 39c9161264

@ -352,7 +352,6 @@ export default {
...mapGetters('setting', ['settings']), ...mapGetters('setting', ['settings']),
}, },
async created() { async created() {
this.carouselHeight = this.isMobile ? '250px' : '360px'
await Promise.all([ await Promise.all([
this.getRecommendDocuments(), this.getRecommendDocuments(),
this.listBanner(), this.listBanner(),
@ -362,6 +361,9 @@ export default {
this.getUser(), this.getUser(),
]) ])
}, },
mounted() {
this.carouselHeight = this.isMobile ? '250px' : '360px'
},
methods: { methods: {
...mapActions('user', ['logout', 'getUser']), ...mapActions('user', ['logout', 'getUser']),
getIcon, getIcon,

Loading…
Cancel
Save