Переглянути джерело

feat: chat add page title (#667)

Joel 1 рік тому
батько
коміт
23e52f14e3
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      web/app/components/explore/universal-chat/index.tsx

+ 3 - 0
web/app/components/explore/universal-chat/index.tsx

@@ -76,6 +76,9 @@ const Main: FC<IMainProps> = () => {
   const media = useBreakpoints()
   const isMobile = media === MediaType.mobile
 
+  useEffect(() => {
+    document.title = `${t('explore.sidebar.chat')} -  Dify`
+  }, [])
   /*
   * app info
   */