chore: update layout component's style to solve the problem of style dislocation at mobile device; 🐶

This commit is contained in:
iczer
2020-06-28 20:24:08 +08:00
parent db25716d9d
commit 6208acc477
7 changed files with 47 additions and 85 deletions

View File

@@ -1,6 +1,6 @@
<template>
<page-layout :desc="desc" :title="title" :linkList="linkList">
<div slot="extra" class="extraImg">
<div v-if="this.extraImage && !isMobile" slot="extra" class="extraImg">
<img :src="extraImage"/>
</div>
<page-toggle-transition :animate="animate.name" :direction="animate.direction">
@@ -33,7 +33,7 @@ export default {
let key = this.path.substring(1).replace(new RegExp('/', 'g'), '.') + '.name'
return this.$t(key)
},
...mapState('setting', ['multiPage', 'animate', 'routesI18n'])
...mapState('setting', ['isMobile', 'multiPage', 'animate', 'routesI18n'])
},
created() {
let i18n = this.routesI18n