mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 10:18:02 +08:00
fix: doc domain check (#6793)
* fix: doc domain check * Update vp-app.vue * chore: lint code Co-authored-by: 云游君 <me@yunyoujun.cn>
This commit is contained in:
parent
b051efd1b7
commit
2f3c447db4
@ -28,6 +28,8 @@ useToggleWidgets(isSidebarOpen, () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const userPrefer = useStorage<boolean | string>(USER_PREFER_GITHUB_PAGE, null)
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (!isClient) return
|
if (!isClient) return
|
||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
@ -61,10 +63,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
if (lang.value === 'zh-CN') {
|
if (lang.value === 'zh-CN') {
|
||||||
if (location.host === 'element-plus.gitee.io') return
|
if (location.host === 'element-plus.gitee.io') return
|
||||||
const userPrefer = useStorage<boolean | string>(
|
|
||||||
USER_PREFER_GITHUB_PAGE,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
if (userPrefer.value) {
|
if (userPrefer.value) {
|
||||||
// no alert in the next 90 days
|
// no alert in the next 90 days
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user