Browse Source

新增点击logo跳转首页

dev
qb 2 months ago
parent
commit
4c296cbed0
  1. 15
      src/page/index/logo.vue
  2. 2
      src/views/wel/index.vue

15
src/page/index/logo.vue

@ -1,6 +1,6 @@
<template>
<div class="avue-logo">
<div class="logo-x">
<div class="logo-x" @click="handleGoIndex">
<div class="logo-img">
<img src="../../../public/img/p-logo.png" />
</div>
@ -15,7 +15,6 @@
<span class="avue-logo_title" key="1">{{ website.indexTitle }} </span>
</template>
</transition-group>
</div>
</div>
</template>
@ -28,11 +27,15 @@ export default {
data() {
return {};
},
created() { },
created() {},
computed: {
...mapGetters(['isCollapse']),
},
methods: {},
methods: {
handleGoIndex() {
this.$router.push('/wel/index');
},
},
};
</script>
<style lang="scss" scoped>
@ -40,7 +43,7 @@ export default {
height: 100%;
display: flex;
align-items: center;
margin:0 10px;
margin: 0 10px;
img {
width: 40px;
height: 40px;
@ -52,7 +55,7 @@ export default {
height: 100%;
background-color: #fff;
}
.avue-logo{
.avue-logo {
color: #000000;
}
</style>

2
src/views/wel/index.vue

@ -109,6 +109,7 @@ onUnmounted(() => {
img {
width: 300px;
height: 300px;
margin-right: 20px;
}
.content {
display: flex;
@ -161,7 +162,6 @@ onUnmounted(() => {
.time {
font-size: 16px;
font-weight: bold;
}
.category {
font-size: 16px;

Loading…
Cancel
Save