Commit 84cc2822071bb296a2facc4fa4c99d2f7ab0825d
1 parent
0fe98dd5
优化水印显示
Showing
1 changed file
with
4 additions
and
1 deletions
src/layouts/BasicLayout.tsx
... | ... | @@ -108,7 +108,10 @@ const BasicLayout: React.FC<BasicLayoutProps> = ({ dispatch, children, ...other |
108 | 108 | {...settings} |
109 | 109 | navTheme={PROD_APP_ENV ? "dark" : "light"} |
110 | 110 | > |
111 | - <WaterMark content={currentUser?.name ? `${currentUser.name} ${currentUser?.mobile ?? ""}` : ""} fontSize={18}> | |
111 | + <WaterMark | |
112 | + content={currentUser?.name ? `${currentUser.name} ${(currentUser?.mobile ?? "").slice(-4)}` : ""} | |
113 | + fontSize={18} | |
114 | + > | |
112 | 115 | {children} |
113 | 116 | </WaterMark> |
114 | 117 | </ProLayout> | ... | ... |