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

dev
truthhun 7 months ago
parent c64f739495
commit 39c9161264

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

Loading…
Cancel
Save