Browse Source

新增点击logo跳转首页

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

9
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>
@ -32,7 +31,11 @@ export default {
computed: {
...mapGetters(['isCollapse']),
},
methods: {},
methods: {
handleGoIndex() {
this.$router.push('/wel/index');
},
},
};
</script>
<style lang="scss" scoped>

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