Add redirect to sub official for wechat (#132)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
e453968abe
commit
0874e193d8
8 files changed
+62
-6
No files matched your search
@@ -4,7 +4,8 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { getCookie } from 'typescript-cookie';
|
||||
import { BASE_URL_HUB } from '@/constants';
|
||||
import { BASE_HOST_HUB } from '@/constants';
|
||||
import { isOfficial } from '@/utils';
|
||||
|
||||
export default {
|
||||
emits: ['click'],
|
||||
@@ -14,7 +15,7 @@ export default {
|
||||
url2: 'https://cdn.acedata.cloud/logo2.png/thumb_450x_',
|
||||
dark: getCookie('THEME') === 'dark',
|
||||
url: '',
|
||||
isOfficial: window.location.origin === BASE_URL_HUB,
|
||||
isOfficial: isOfficial(),
|
||||
interval: undefined as number | undefined
|
||||
};
|
||||
},
|
||||
|
||||
@@ -33,7 +33,8 @@ import {
|
||||
ROUTE_INDEX
|
||||
} from '@/router';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { BASE_URL_HUB } from '@/constants';
|
||||
import { BASE_HOST_HUB } from '@/constants';
|
||||
import { isOfficial } from '@/utils';
|
||||
|
||||
interface ILink {
|
||||
key: string;
|
||||
@@ -51,7 +52,7 @@ export default defineComponent({
|
||||
},
|
||||
computed: {
|
||||
isOfficial() {
|
||||
return window.location.origin === BASE_URL_HUB;
|
||||
return isOfficial();
|
||||
},
|
||||
active() {
|
||||
return this.$route.matched[0].path;
|
||||
|
||||
Reference in new issue
Block a user