Skip to content

Commit 0fc5cc9

Browse files
author
lrhh123
committed
add: 添加版本号
1 parent 2f44215 commit 0fc5cc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderer/pages/Home/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ import Panels from './Panels';
1616
import LogBox from './LogBox';
1717

1818
const HomePage = () => {
19+
const currentVersion = window.electron.ipcRenderer.get('get-version');
1920
useEffect(() => {
20-
trackPageView('Home');
21+
trackPageView(`Home-${currentVersion}`);
22+
// eslint-disable-next-line react-hooks/exhaustive-deps
2123
}, []);
2224

2325
return (

0 commit comments

Comments
 (0)