master
Mr.sun 2 years ago
parent ee218fae9b
commit 95829454cf
  1. 45
      src/layout/components/Sidebar/Logo.vue

@ -16,7 +16,11 @@
class="sidebar-logo-link" class="sidebar-logo-link"
to="/" to="/"
> >
<img v-if="logo" :src="logo" class="sidebar-logo" /> <img
v-if="logo"
:src="logo"
class="sidebar-logo"
/>
<!-- <span v-if="logo" class="sidebar-logo-custom">WMS</span> --> <!-- <span v-if="logo" class="sidebar-logo-custom">WMS</span> -->
<h1 <h1
@ -32,9 +36,18 @@
{{ title }} {{ title }}
</h1> </h1>
</router-link> </router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/"> <router-link
v-else
key="expand"
class="sidebar-logo-link"
to="/"
>
<!-- <h1 class="sidebar-title" >111</h1> --> <!-- <h1 class="sidebar-title" >111</h1> -->
<img v-if="logo" :src="logo" class="sidebar-logo" /> <img
v-if="logo"
:src="logo"
class="sidebar-logo"
/>
<!-- <span v-if="logo" class="sidebar-logo-custom">WMS</span> --> <!-- <span v-if="logo" class="sidebar-logo-custom">WMS</span> -->
<h1 <h1
class="sidebar-title" class="sidebar-title"
@ -53,33 +66,33 @@
</template> </template>
<script> <script>
import logoImg from "@/assets/logo/ycxk.png"; import logoImg from '@/assets/logo/ycxk.png'
import variables from "@/assets/styles/_customVariables.scss"; import variables from '@/assets/styles/_customVariables.scss'
export default { export default {
name: "SidebarLogo", name: 'SidebarLogo',
props: { props: {
collapse: { collapse: {
type: Boolean, type: Boolean,
required: true, required: true
}, }
}, },
computed: { computed: {
variables() { variables() {
return variables; return variables
}, },
sideTheme() { sideTheme() {
return this.$store.state.settings.sideTheme; return this.$store.state.settings.sideTheme
}, }
}, },
data() { data() {
return { return {
title: "亦大通仓库管理系统", title: '常崟仓库管理系统',
// logo: logoImg, // logo: logoImg,
logo: '', logo: ''
}; }
}, }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

Loading…
Cancel
Save