Logo.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div class="logo">
  3. <router-link :to="{name:'dashboard'}">
  4. <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
  5. <!-- <img v-if="navTheme === 'dark'" src="~@/assets/logo-cd.png" alt="logo">
  6. <img v-else src="~@/assets/logo-cd-left.png" alt="logo"> -->
  7. <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
  8. <!-- <h1 v-if="showTitle">{{ title }}</h1> -->
  9. <!-- <img v-if="showTitle" src="~@/assets/logo-cd.png" alt="logo"> -->
  10. <!-- 技能博物馆 -->
  11. <!-- <img src="~@/assets/logo-cd-left1.png" alt="logo">
  12. <h1 >OA办公系统</h1> -->
  13. <img :src="this.$store.state.logoUrl" alt="logo">
  14. <!-- <h1 >{{ dashboard }}</h1> -->
  15. </router-link>
  16. </div>
  17. </template>
  18. <script>
  19. import { mixin } from '@/utils/mixin.js'
  20. export default {
  21. name: 'Logo',
  22. mixins: [mixin],
  23. props: {
  24. title: {
  25. type: String,
  26. default: 'Jeecg-Boot Pro',
  27. required: false
  28. },
  29. showTitle: {
  30. type: Boolean,
  31. default: true,
  32. required: false
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="less" scoped>
  38. /*缩小首页布 局顶部的高度*/
  39. @height: 59px;
  40. .sider {
  41. box-shadow: none !important;
  42. .logo {
  43. height: @height !important;
  44. line-height: @height !important;
  45. box-shadow: none !important;
  46. transition: background 300ms;
  47. // background-color: #6bc5f3 !important;
  48. img {
  49. height: 40px !important;
  50. }
  51. a {
  52. color: white;
  53. &:hover {
  54. color: rgba(255, 255, 255, 0.8);
  55. }
  56. }
  57. }
  58. &.light .logo {
  59. background-color: @primary-color !important;
  60. }
  61. }
  62. </style>