From 711bf09c750f9ed436de7f615e4e881c96f724a9 Mon Sep 17 00:00:00 2001 From: whats2000 <60466660+whats2000@users.noreply.github.com> Date: Sun, 14 Apr 2024 18:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9:=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E9=83=A8=E5=B1=AC=E5=8F=96=E7=9A=84url?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/collection/CollectionModal.tsx | 3 +-- src/utils/getBaseUrl.ts | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 src/utils/getBaseUrl.ts diff --git a/src/components/collection/CollectionModal.tsx b/src/components/collection/CollectionModal.tsx index e486f33..945577b 100644 --- a/src/components/collection/CollectionModal.tsx +++ b/src/components/collection/CollectionModal.tsx @@ -9,7 +9,6 @@ import { ICollection } from '@/types/ICollection.ts'; import getImageUrl from '@/utils/getImageUrl.ts'; import { Link } from 'react-router-dom'; import ShareModal from '#/common/ShareModal.tsx'; -import { getBasePath } from '@/utils/getBaseUrl.ts'; import stopVideo from '@/utils/stopVideo.ts'; const StyledTitle = styled.h2` @@ -235,7 +234,7 @@ const CollectionModal: React.FC = ( {t('download')} )} - + ); diff --git a/src/utils/getBaseUrl.ts b/src/utils/getBaseUrl.ts deleted file mode 100644 index fb443d3..0000000 --- a/src/utils/getBaseUrl.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const getBasePath = () => { - if (window.location.hostname === 'localhost') { - return window.location.origin; - } else { - return `${window.location.origin}/cloudtown-website`; - } -};