feat: 修改代码结构
This commit is contained in:
@@ -56,7 +56,7 @@ export default function LanguageSwitch() {
|
||||
}}
|
||||
>
|
||||
<SvgIcon
|
||||
name={locale === 'en-US' ? 'language' : 'language-zh'}
|
||||
name={locale === 'en-US' ? 'language-zh' : 'language'}
|
||||
className={'cursor-pointer text-[#EAEAEA] hover:text-[#B5C9E2]'}
|
||||
/>
|
||||
<span className='sr-only'>{languages[locale as keyof typeof languages]}</span>
|
||||
|
||||
@@ -75,7 +75,6 @@ const Purchase = forwardRef<PurchaseDialogRef, PurchaseProps>((props, ref) => {
|
||||
queryKey: ['preCreateOrder', subscribe?.id, params.quantity],
|
||||
queryFn: async () => {
|
||||
try {
|
||||
console.log('123123', subscribe);
|
||||
const { data } = await preCreateOrder({
|
||||
...params,
|
||||
subscribe_id: subscribe?.id as number,
|
||||
|
||||
Reference in New Issue
Block a user