diff --git a/ui/src/components/sidebar/aboutModal.tsx b/ui/src/components/sidebar/aboutModal.tsx index 8a53b04..275dac0 100644 --- a/ui/src/components/sidebar/aboutModal.tsx +++ b/ui/src/components/sidebar/aboutModal.tsx @@ -2,7 +2,7 @@ import dayjs from 'dayjs'; import { useState } from 'react'; import { Ellipsis, Modal } from '@c-x/ui'; import { Box, Button, Link, Stack } from '@mui/material'; -import { GithubComChaitinMonkeyCodeBackendProDomainLicenseResp } from '@/api/types'; +import { DomainLicenseResp } from '@/api/types'; import ChangeLicense from './changeLicense'; interface LicenseModalProps { @@ -10,7 +10,7 @@ interface LicenseModalProps { onClose: () => void; curVersion: string; latestVersion: string; - license: GithubComChaitinMonkeyCodeBackendProDomainLicenseResp | undefined; + license: DomainLicenseResp | undefined; } const AboutModal = ({ diff --git a/ui/src/components/sidebar/changeLicense.tsx b/ui/src/components/sidebar/changeLicense.tsx index 23fa232..50a96f3 100644 --- a/ui/src/components/sidebar/changeLicense.tsx +++ b/ui/src/components/sidebar/changeLicense.tsx @@ -2,7 +2,7 @@ import dayjs from 'dayjs'; import { useState } from 'react'; import { Ellipsis, message, Modal } from '@c-x/ui'; import { Box, Button, Link, Stack, TextField } from '@mui/material'; -import { GithubComChaitinMonkeyCodeBackendProDomainLicenseResp } from '@/api/types'; +import { DomainLicenseResp } from '@/api/types'; import { v1LicenseCreate } from '@/api'; interface LicenseModalProps { @@ -27,7 +27,7 @@ const ChangeLicense = ({ license_type: 'code', license_code: code, license_file: '' as any - }).then((resp: GithubComChaitinMonkeyCodeBackendProDomainLicenseResp) => { + }).then((resp: DomainLicenseResp) => { message.success("切换授权成功"); console.log(resp) setVerifing(false);