Skip to content

Commit aad9f6f

Browse files
author
liq
committed
fix: href不支持二级域名path
1 parent 4352ca0 commit aad9f6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/app/(commonLayout)/datasets/NewDatasetCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const CreateAppCard = forwardRef<HTMLAnchorElement>((_, ref) => {
1010
const { t } = useTranslation()
1111

1212
return (
13-
<a ref={ref} className='group flex flex-col col-span-1 bg-gray-200 border-[0.5px] border-black/5 rounded-xl min-h-[160px] transition-all duration-200 ease-in-out cursor-pointer hover:bg-white hover:shadow-lg' href='/datasets/create'>
13+
<a ref={ref} className='group flex flex-col col-span-1 bg-gray-200 border-[0.5px] border-black/5 rounded-xl min-h-[160px] transition-all duration-200 ease-in-out cursor-pointer hover:bg-white hover:shadow-lg' href='./datasets/create'>
1414
<div className='shrink-0 flex items-center p-4 pb-3'>
1515
<div className='w-10 h-10 flex items-center justify-center border border-gray-200 bg-gray-100 rounded-lg'>
1616
<RiAddLine className='w-4 h-4 text-gray-500'/>

web/app/components/app/configuration/dataset-config/select-dataset/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const SelectDataSet: FC<ISelectDataSetProps> = ({
112112
}}
113113
>
114114
<span className='text-gray-500'>{t('appDebug.feature.dataSet.noDataSet')}</span>
115-
<Link href="/datasets/create" className='font-normal text-[#155EEF]'>{t('appDebug.feature.dataSet.toCreate')}</Link>
115+
<Link href="./datasets/create" className='font-normal text-[#155EEF]'>{t('appDebug.feature.dataSet.toCreate')}</Link>
116116
</div>
117117
)}
118118

0 commit comments

Comments
 (0)