File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
continew-plugin/continew-plugin-generator/src/main/resources/templates/frontend Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export interface ${classNamePrefix}PageQuery extends ${classNamePrefix}Query, Pa
3737
3838/** @desc 查询${businessName} 列表 */
3939export 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} */
4949export 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} */
5959export 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} */
You can’t perform that action at this time.
0 commit comments