Skip to content

Commit

Permalink
fix: 屏蔽yakit更新通知
Browse files Browse the repository at this point in the history
  • Loading branch information
youngster-yj authored and song-xiao-lin committed Dec 6, 2024
1 parent fc3ddc7 commit 5cbd9f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/renderer/src/main/src/components/layout/FuncDomain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ const UIOpNotice: React.FC<UIOpNoticeProp> = React.memo((props) => {
if (isCommunityEdition()) visitorsStatisticsFun()
grpcFetchLatestYakitVersion(true)
.then((data: string) => {
setYakitLastVersion(data)
// setYakitLastVersion(data)
})
.catch(() => {
setYakitLastVersion("")
Expand Down Expand Up @@ -1949,15 +1949,15 @@ const UIOpNotice: React.FC<UIOpNoticeProp> = React.memo((props) => {
{noticeType==="update"?
<div className={styles["notice-version-wrapper"]}>
<div className={styles["version-wrapper"]}>
<UIOpUpdateYakit
{/* <UIOpUpdateYakit
version={yakitVersion}
lastVersion={yakitLastVersion}
isUpdateWait={isYakitUpdateWait}
onDownload={onDownload}
role={userInfo.role}
updateContent={communityYakit}
onUpdateEdit={UpdateContentEdit}
/>
/> */}
<UIOpUpdateYaklang
version={yaklangVersion}
lastVersion={yaklangLastVersion}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const LocalEngine: React.FC<LocalEngineProps> = memo(
grpcFetchLatestYakitVersion(true)
.then((data) => {
if (preventUpdateHint.current) return
setLatestYakit(data || "")
// setLatestYakit(data || "")
})
.catch((err) => {})
grpcFetchLatestYakVersion(true)
Expand Down

0 comments on commit 5cbd9f0

Please sign in to comment.