Skip to content

Commit 73bcc2c

Browse files
committed
fix: svg compoent
1 parent 7997247 commit 73bcc2c

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/assets/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/page/GlobalLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,12 @@ export default {
507507
background: #002140;
508508
overflow: hidden;
509509
510-
img, h1 {
510+
img, svg, h1 {
511511
display: inline-block;
512512
vertical-align: middle;
513513
}
514514
515-
img {
515+
img, svg {
516516
height: 32px;
517517
}
518518

src/components/tools/Logo.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
<template>
22
<div class="logo">
33
<router-link :to="{name:'dashboard'}">
4-
<img src="~@/assets/logo.svg" alt="logo">
4+
<LogoSvg alt="logo" />
55
<h1 v-if="showTitle">{{ title }}</h1>
66
</router-link>
77
</div>
88
</template>
99

1010
<script>
11+
import LogoSvg from '@/assets/logo.svg'
12+
13+
console.log(LogoSvg)
14+
1115
export default {
1216
name: 'Logo',
17+
components: {
18+
LogoSvg
19+
},
1320
props: {
1421
title: {
1522
type: String,

0 commit comments

Comments
 (0)