fix: update env.example
This commit is contained in:
parent
31e95e3dec
commit
77bf4f2057
16
.env.example
16
.env.example
@ -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_DIALECT=sqlite
|
||||||
|
|
||||||
|
# DB_HOST=localhost
|
||||||
|
# DB_PORT=5432
|
||||||
|
# DB_DATABASE=postgres
|
||||||
|
# DB_USER=nocobase
|
||||||
|
# DB_PASSWORD=nocobase
|
||||||
|
# DB_LOG_SQL=on
|
||||||
|
|
||||||
# STORAGE (Initialization only)
|
# STORAGE (Initialization only)
|
||||||
|
|
||||||
# local or ali-oss
|
# local or ali-oss
|
||||||
|
@ -42,13 +42,13 @@ export const useCreateActionProps = () => {
|
|||||||
});
|
});
|
||||||
__parent?.service?.refresh?.();
|
__parent?.service?.refresh?.();
|
||||||
setVisible?.(false);
|
setVisible?.(false);
|
||||||
const onSuccess = field?.decoratorProps?.onSuccess;
|
if (visible !== undefined) {
|
||||||
if (!onSuccess) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const onSuccess = field?.decoratorProps?.onSuccess;
|
||||||
if (typeof onSuccess === 'function') {
|
if (typeof onSuccess === 'function') {
|
||||||
onSuccess({ form });
|
onSuccess({ form });
|
||||||
} else if (visible === undefined) {
|
} else {
|
||||||
Modal.success({
|
Modal.success({
|
||||||
title: onSuccess?.successMessage || t('Submitted successfully!'),
|
title: onSuccess?.successMessage || t('Submitted successfully!'),
|
||||||
onOk: async () => {
|
onOk: async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user