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
@@ -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