修正了license的类型问题

This commit is contained in:
Monster
2025-08-08 17:23:43 +08:00
parent 461c5f6482
commit 7dfdf90267
2 changed files with 4 additions and 4 deletions

View File

@@ -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 = ({

View File

@@ -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);