logo.vue 848 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div id="logo">
  3. <el-row>
  4. <el-col :span="24" class="logo">
  5. <span v-if="info && info.logourl">
  6. <el-image style="width:690px;height:66px;" :src="info.logourl">
  7. <div slot="error" class="image-slot">
  8. <el-image style="width:690px;height:66px;" :src="logourl"></el-image>
  9. </div>
  10. </el-image>
  11. </span>
  12. <span v-else>
  13. <el-image style="width:690px;height:66px;" :src="logourl"></el-image>
  14. </span>
  15. </el-col>
  16. </el-row>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'logo',
  22. props: {
  23. info: null,
  24. },
  25. components: {},
  26. data: () => ({
  27. logourl: require('@/assets/home/logo.png'),
  28. }),
  29. created() {},
  30. computed: {},
  31. methods: {},
  32. };
  33. </script>
  34. <style lang="less" scoped>
  35. .logo {
  36. padding: 65px 0;
  37. }
  38. </style>