# Vue3 + TypeScript + Element Plus 页面生成提示词 当需要创建新的前端页面时,按照以下模板生成代码: ## API 接口定义模板 ```typescript // src/api/{module}/{name}.ts import request from '@/utils/request' /** * {业务名称} VO 接口 */ export interface {Name}VO { id?: number | string // ... 其他字段 } /** * {业务名称} Form 接口 */ export interface {Name}Form { id?: number | string // ... 其他字段 } /** * {业务名称} 查询参数 */ export interface {Name}Query { pageNum: number pageSize: number // ... 其他查询字段 } /** * 查询{业务名称}列表 */ export const list{Name} = (params: {Name}Query) => { return request({ url: '/{module}/{path}/list', method: 'get', params }) } /** * 查询{业务名称}详情 */ export const get{Name} = (id: number | string) => { return request({ url: `/{module}/{path}/${id}`, method: 'get' }) } /** * 新增{业务名称} */ export const add{Name} = (data: {Name}Form) => { return request({ url: '/{module}/{path}', method: 'post', data }) } /** * 修改{业务名称} */ export const update{Name} = (data: {Name}Form) => { return request({ url: '/{module}/{path}', method: 'put', data }) } /** * 删除{业务名称} */ export const del{Name} = (ids: (number | string)[]) => { return request({ url: `/{module}/{path}/${ids}`, method: 'delete' }) } ``` ## 列表页面模板 ```vue ``` ## 表单组件模板 ```vue ``` ## 注意事项 1. 所有占位符 `{xxx}` 需要替换为实际值 2. 使用 Composition API 和 `