Skip to content

Commit

Permalink
修改: 移除正式部屬取的url方法
Browse files Browse the repository at this point in the history
  • Loading branch information
whats2000 committed Apr 14, 2024
1 parent 4326adc commit 711bf09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions src/components/collection/CollectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -235,7 +234,7 @@ const CollectionModal: React.FC<CollectionModalProps> = (
{t('download')}
</Button>
)}
<ShareModal url={`${getBasePath()}/${pageType}Collection?share=${index}`} title={item.title} />
<ShareModal url={`${window.location.host}${import.meta.env.BASE_URL}${pageType}Collection?share=${index}`} title={item.title} />
</>
);

Expand Down
7 changes: 0 additions & 7 deletions src/utils/getBaseUrl.ts

This file was deleted.

0 comments on commit 711bf09

Please sign in to comment.