mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
perf: i18n (#4740)
* feat: login limit time config * doc * perf: code * i18n update * update lock * fix: ts * update package
This commit is contained in:
@@ -5,7 +5,7 @@ import { isProduction } from '@fastgpt/global/common/system/constants';
|
||||
export const useBeforeunload = (props?: { callback?: () => any; tip?: string }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { tip = t('common:common.Confirm to leave the page'), callback } = props || {};
|
||||
const { tip = t('common:comfirm_leave_page'), callback } = props || {};
|
||||
|
||||
useEffect(() => {
|
||||
const listen = isProduction
|
||||
|
Reference in New Issue
Block a user