Refine styles for pages (#31)
This commit is contained in:
1 parent
5b8b46b76b
commit
97f914c7e4
14 files changed
+60
-56
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="side-panel">
|
||||
<div>
|
||||
<img src="@/assets/images/logo.svg" class="logo" @click="onHome" />
|
||||
<img v-if="isOfficial" src="@/assets/images/logo.svg" class="logo" @click="onHome" />
|
||||
</div>
|
||||
<div class="links">
|
||||
<a
|
||||
@@ -36,6 +36,7 @@ import {
|
||||
ROUTE_CONSOLE_DISTRIBUTION_INDEX
|
||||
} from '@/router';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { BASE_URL_HUB } from '@/constants';
|
||||
|
||||
interface ILink {
|
||||
key: string;
|
||||
@@ -52,6 +53,9 @@ export default defineComponent({
|
||||
FontAwesomeIcon
|
||||
},
|
||||
computed: {
|
||||
isOfficial() {
|
||||
return window.location.origin === BASE_URL_HUB;
|
||||
},
|
||||
active() {
|
||||
return this.$route.matched[0].path;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user