mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
fix(generator): 修复代码生成前端api文件模版路径问题 (#155)
This commit is contained in:
@@ -37,7 +37,7 @@ export interface ${classNamePrefix}PageQuery extends ${classNamePrefix}Query, Pa
|
||||
|
||||
/** @desc 查询${businessName}列表 */
|
||||
export function list${classNamePrefix}(query: ${classNamePrefix}PageQuery) {
|
||||
return http.get<PageRes<${classNamePrefix}Resp[]>>(`${'$'}{BASE_URL}`, query)
|
||||
return http.get<PageRes<${classNamePrefix}Resp[]>>(BASE_URL, query)
|
||||
}
|
||||
|
||||
/** @desc 查询${businessName}详情 */
|
||||
@@ -47,7 +47,7 @@ export function get${classNamePrefix}(id: string) {
|
||||
|
||||
/** @desc 新增${businessName} */
|
||||
export function add${classNamePrefix}(data: any) {
|
||||
return http.post(`${'$'}{BASE_URL}`, data)
|
||||
return http.post(BASE_URL, data)
|
||||
}
|
||||
|
||||
/** @desc 修改${businessName} */
|
||||
@@ -57,7 +57,7 @@ export function update${classNamePrefix}(data: any, id: string) {
|
||||
|
||||
/** @desc 删除${businessName} */
|
||||
export function delete${classNamePrefix}(id: string) {
|
||||
return http.del(`${'$'}{BASE_URL}/`, { ids: [id] })
|
||||
return http.del(BASE_URL, { ids: [id] })
|
||||
}
|
||||
|
||||
/** @desc 导出${businessName} */
|
||||
|
Reference in New Issue
Block a user