Commit da2ef22e authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/fullscreen' into 'main'

add fullscreen

See merge request mycard/Neos!330
parents 33a714b6 ac2ac811
...@@ -134,6 +134,11 @@ export const Component = () => { ...@@ -134,6 +134,11 @@ export const Component = () => {
label: logined ? "退出登录" : "登录萌卡", label: logined ? "退出登录" : "登录萌卡",
onClick: logined ? onLogout : onLogin, onClick: logined ? onLogout : onLogin,
}, },
{
label: "全屏",
onClick: () => document.documentElement.requestFullscreen(),
danger: true,
},
].map((x, key) => ({ ...x, key })), ].map((x, key) => ({ ...x, key })),
}} }}
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment