mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-09 02:03:26 +08:00
修正了license的类型问题
This commit is contained in:
@@ -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 = ({
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user