fix: Remove any extra Spaces in the title (#15841)

This commit is contained in:
Yi Feng 2025-03-14 17:12:29 +08:00 committed by GitHub
parent bf9b572bc3
commit 1a6298b6ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,7 @@ const Apps = () => {
] ]
useEffect(() => { useEffect(() => {
document.title = `${t('common.menus.apps')} - Dify` document.title = `${t('common.menus.apps')} - Dify`
if (localStorage.getItem(NEED_REFRESH_APP_LIST_KEY) === '1') { if (localStorage.getItem(NEED_REFRESH_APP_LIST_KEY) === '1') {
localStorage.removeItem(NEED_REFRESH_APP_LIST_KEY) localStorage.removeItem(NEED_REFRESH_APP_LIST_KEY)
mutate() mutate()

View File

@ -24,7 +24,7 @@ const Explore: FC<IExploreProps> = ({
const [installedApps, setInstalledApps] = useState<InstalledApp[]>([]) const [installedApps, setInstalledApps] = useState<InstalledApp[]>([])
useEffect(() => { useEffect(() => {
document.title = `${t('explore.title')} - Dify`; document.title = `${t('explore.title')} - Dify`;
(async () => { (async () => {
const { accounts } = await fetchMembers({ url: '/workspaces/current/members', params: {} }) const { accounts } = await fetchMembers({ url: '/workspaces/current/members', params: {} })
if (!accounts) if (!accounts)

View File

@ -37,6 +37,7 @@ const translation = {
Programming: 'Programming', Programming: 'Programming',
HR: 'HR', HR: 'HR',
Workflow: 'Workflow', Workflow: 'Workflow',
Entertainment: 'Entertainment',
}, },
} }

View File

@ -37,6 +37,7 @@ const translation = {
Programming: '编程', Programming: '编程',
HR: '人力资源', HR: '人力资源',
Workflow: '工作流', Workflow: '工作流',
Entertainment: '娱乐',
}, },
} }