Commit ac2ac811 authored by Chunchi Che's avatar Chunchi Che

add fullscreen

parent 33a714b6
...@@ -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