Skip to content

Commit 1c85b43

Browse files
authored
fix(generator): 修复代码生成前端api文件模版路径问题 (#155)
1 parent 4ae716c commit 1c85b43

File tree

1 file changed

+3
-3
lines changed
  • continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend

1 file changed

+3
-3
lines changed

continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend/api.ftl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface ${classNamePrefix}PageQuery extends ${classNamePrefix}Query, Pa
3737

3838
/** @desc 查询${businessName}列表 */
3939
export function list${classNamePrefix}(query: ${classNamePrefix}PageQuery) {
40-
return http.get<PageRes<${classNamePrefix}Resp[]>>(`${'$'}{BASE_URL}`, query)
40+
return http.get<PageRes<${classNamePrefix}Resp[]>>(BASE_URL, query)
4141
}
4242

4343
/** @desc 查询${businessName}详情 */
@@ -47,7 +47,7 @@ export function get${classNamePrefix}(id: string) {
4747

4848
/** @desc 新增${businessName} */
4949
export function add${classNamePrefix}(data: any) {
50-
return http.post(`${'$'}{BASE_URL}`, data)
50+
return http.post(BASE_URL, data)
5151
}
5252

5353
/** @desc 修改${businessName} */
@@ -57,7 +57,7 @@ export function update${classNamePrefix}(data: any, id: string) {
5757

5858
/** @desc 删除${businessName} */
5959
export function delete${classNamePrefix}(id: string) {
60-
return http.del(`${'$'}{BASE_URL}/`, { ids: [id] })
60+
return http.del(BASE_URL, { ids: [id] })
6161
}
6262

6363
/** @desc 导出${businessName} */

0 commit comments

Comments
 (0)