From 1c85b4393161ddd17ea76bc16858a02857d4c746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E6=9D=83=E6=AD=A6?= <919403255@qq.com> Date: Thu, 17 Apr 2025 14:11:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(generator):=20=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=E5=89=8D=E7=AB=AFapi=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E7=89=88=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/frontend/api.ftl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend/api.ftl b/continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend/api.ftl index 11f2c535..de39b017 100644 --- a/continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend/api.ftl +++ b/continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend/api.ftl @@ -37,7 +37,7 @@ export interface ${classNamePrefix}PageQuery extends ${classNamePrefix}Query, Pa /** @desc 查询${businessName}列表 */ export function list${classNamePrefix}(query: ${classNamePrefix}PageQuery) { - return http.get>(`${'$'}{BASE_URL}`, query) + return http.get>(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} */