Add redirect to sub official for wechat (#132)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-08-31 01:04:02 +08:00
1 parent e453968abe
commit 0874e193d8
8 files changed
+62 -6

No files matched your search

+3 -2
View File
@@ -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;