From 7dfdf90267b08c8325d3a62a799a1878dfc66ae7 Mon Sep 17 00:00:00 2001 From: Monster <389264167@qq.com> Date: Fri, 8 Aug 2025 17:23:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86license=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/sidebar/aboutModal.tsx | 4 ++-- ui/src/components/sidebar/changeLicense.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);