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
|
||||
};
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user