mirror of
https://github.com/veops/cmdb.git
synced 2025-08-12 06:47:19 +08:00
Modify code organization
This commit is contained in:
30
cmdb-ui/src/components/tools/Logo.vue
Normal file
30
cmdb-ui/src/components/tools/Logo.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<div class="logo">
|
||||
<router-link :to="{name:'cmdb'}">
|
||||
<h1 v-if="showTitle">{{ title }}</h1>
|
||||
</router-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import LogoSvg from '@/assets/logo.svg?inline'
|
||||
|
||||
export default {
|
||||
name: 'Logo',
|
||||
components: {
|
||||
LogoSvg
|
||||
},
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'CMDB',
|
||||
required: false
|
||||
},
|
||||
showTitle: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
required: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user