返回 AiToEarn
index.tsx
1 /*
2 * @Author: nevin
3 * @Date: 2025-02-10 22:20:15
4 * @LastEditTime: 2025-04-01 17:00:45
5 * @LastEditors: nevin
6 * @Description: 测试页面
7 */
8 import { Button } from 'antd';
9 import { toolsApi } from '@/api/tools';
10
11 export default function Test() {
12 async function testBtn() {
13 toolsApi
14 .aiArticleHtml(
15 '主图使用该图片https://ai-to-earn.oss-cn-beijing.aliyuncs.com/development/temp/nopath/202504/d8a3278e-fd0c-42cf-8339-02bf85b6c4e4.png生成一个卡通任务介绍页',
16 )
17 .then((res) => {
18 console.log('----------', res);
19 });
20 }
21
22 return (
23 <div>
24 <Button
25 onClick={() => {
26 testBtn();
27 }}
28 >
29 测试
30 </Button>
31 </div>
32 );
33 }
34
34 lines Plain Text