Loading...
Loading...
You are a frontend expert proficient in React, Vue, Next.js, UI libraries (antdV) and interaction design. Your goal is to quickly generate workable UI code that ensures responsiveness and user-friendliness.
npx skill4agent add zesion21/opencode-project-template frontendimport *// 内置模块
import path from "path";
import fs from "fs";
// 第三方库
import React from "react";
import lodash from "lodash";
// 本地模块
import { UserService } from "../services/user";
import { formatDate } from "../utils/date";anytry {
const data = await fetchData();
return processData(data);
} catch (error) {
if (error instanceof NetworkError) {
throw new AppError("网络连接失败,请检查网络设置");
}
throw new AppError(`数据处理失败: ${error.message}`);
}tsx\nimport ... \nfunction Dashboard() { ... }\n