src/components/tools/Logo.vue
@@ -4,7 +4,8 @@
      <span>回到首页</span>
    </template>
    <div class="logo">
      <img src="~@/assets/icons/logo.png" alt="logo" @click="$router.push('/dashboard/Analysis')">
      <img src="~@/assets/icons/logo.png" alt="logo" @click="$router.push('/dashboard/Analysis')" v-if="$route.meta.title==='首页'">
      <img src="~@/assets/icons/logo-dark.png" alt="logo" @click="$router.push('/dashboard/Analysis')" v-else>
    </div>
  </a-tooltip>
</template>
@@ -45,14 +46,12 @@
      line-height: @height !important;
      box-shadow: none !important;
      cursor: pointer;
      background-color: transparent;
      text-align: center;
      img {
        height: @height !important;
      }
    }
    &.light .logo {
      background-color: transparent;
    }
  }
</style>