Logo.vue
998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div class="home-logo-wrapper">
<!-- <img class="home-logo-img" src="https://img01.glsx.com.cn/weapp/resource/drive/xbkj_small.png" alt="home-logo" > -->
<img class="home-logo-img" :src="smallLogo" alt="home-logo" >
<!-- <img v-show="collapsed" class="home-logo-img home-thumbnail-logo" src="@/assets/images/logo-thumbnail.png" alt="home-logo" > -->
</div>
</template>
<script>
import { ref } from 'vue';
export default {
name: 'Logo',
// props: {
// collapsed: Boolean
// },
setup () {
const smallLogo = localStorage.getItem('smallLogo');
return {smallLogo}
}
}
</script>
<style lang="less" scoped>
@import 'styles/mixins.less';
.home-logo-wrapper {
.vh-center;
width: 100%;
height: 60px;
padding: 5px 0;
.home-logo-img {
max-width: 170px;
max-height: 60px;
}
.home-thumbnail-logo {
width: 80%;
}
}
</style>