Skip to content

Commit

Permalink
fix: Fix frontend tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Jan 25, 2024
1 parent 1512a55 commit dc59449
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build

RELEASE_VERSION = v10.3.4
RELEASE_VERSION = v10.3.5

APP = gin-admin-cli
BIN = ${APP}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
//go:embed tpls
var f embed.FS

var VERSION = "v10.3.4"
var VERSION = "v10.3.5"

func main() {
defer func() {
Expand Down
4 changes: 2 additions & 2 deletions tpls/ant-design-pro-v5/pages.components.form.tsx.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const {{$name}}Modal: React.FC<{{$name}}ModalProps> = (props: {{$name}}ModalProp
const data = res.data;
{{- if $includeStatus}}
data.statusChecked = data.status === 'enabled';
{{-end}}
{{- end}}
formRef.current?.setFieldsValue(data);
}
});
Expand Down Expand Up @@ -66,7 +66,7 @@ const {{$name}}Modal: React.FC<{{$name}}ModalProps> = (props: {{$name}}ModalProp
onFinish={async (values: API.{{$name}}) => {
{{- if $includeStatus}}
values.status = values.statusChecked ? 'enabled' : 'disabled';
{{-end}}
{{- end}}
if (props.id) {
await update{{$name}}(props.id, values);
} else {
Expand Down

0 comments on commit dc59449

Please sign in to comment.