mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:26:11 +00:00
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_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
|
||||
|
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user