From ae171c0223fe19ec729d9d35bb0791d49cbae583 Mon Sep 17 00:00:00 2001 From: ZhengJie <201507802@qq.com> Date: Sat, 5 Sep 2020 11:04:27 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E5=AE=8C=E5=96=84](v2.5):?= =?UTF-8?q?=20update=20index.ftl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/474 --- .../src/main/resources/template/generator/front/index.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eladmin-system/src/main/resources/template/generator/front/index.ftl b/eladmin-system/src/main/resources/template/generator/front/index.ftl index e5a3f3f1..9307821a 100644 --- a/eladmin-system/src/main/resources/template/generator/front/index.ftl +++ b/eladmin-system/src/main/resources/template/generator/front/index.ftl @@ -129,7 +129,7 @@ export default { dicts: [<#if hasDict??><#list dicts as dict>'${dict}'<#if dict_has_next>, ], cruds() { - return CRUD({ title: '${apiAlias}', url: 'api/${changeClassName}', sort: '${pkChangeColName},desc', crudMethod: { ...crud${className} }}) + return CRUD({ title: '${apiAlias}', url: 'api/${changeClassName}', idField: '${pkChangeColName}', sort: '${pkChangeColName},desc', crudMethod: { ...crud${className} }}) }, data() { return {