fix: update env.example

This commit is contained in:
chenos 2022-04-07 08:10:58 +08:00
parent 31e95e3dec
commit 77bf4f2057
2 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,21 @@
NOCOBASE_ENV=development
API_PORT=3000
# api base path endpoint for app(web)
API_BASE_PATH=/api/
# api server access point for app(web when build)
API_BASE_URL=
DB_DIALECT=sqlite
# DB_HOST=localhost
# DB_PORT=5432
# DB_DATABASE=postgres
# DB_USER=nocobase
# DB_PASSWORD=nocobase
# DB_LOG_SQL=on
# STORAGE (Initialization only)
# local or ali-oss

View File

@ -42,13 +42,13 @@ export const useCreateActionProps = () => {
});
__parent?.service?.refresh?.();
setVisible?.(false);
const onSuccess = field?.decoratorProps?.onSuccess;
if (!onSuccess) {
if (visible !== undefined) {
return;
}
const onSuccess = field?.decoratorProps?.onSuccess;
if (typeof onSuccess === 'function') {
onSuccess({ form });
} else if (visible === undefined) {
} else {
Modal.success({
title: onSuccess?.successMessage || t('Submitted successfully!'),
onOk: async () => {