mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 16:36:07 +08:00
修复移动端判断
This commit is contained in:
parent
dc5b4de5fa
commit
59c9b17c40
2
src/pages/env/index.tsx
vendored
2
src/pages/env/index.tsx
vendored
|
@ -164,7 +164,7 @@ const Env = () => {
|
||||||
key: 'action',
|
key: 'action',
|
||||||
align: 'center' as const,
|
align: 'center' as const,
|
||||||
render: (text: string, record: any, index: number) => {
|
render: (text: string, record: any, index: number) => {
|
||||||
const isPc = width === '100%';
|
const isPc = !isPhone;
|
||||||
return (
|
return (
|
||||||
<Space size="middle" style={{ paddingLeft: 8 }}>
|
<Space size="middle" style={{ paddingLeft: 8 }}>
|
||||||
<Tooltip title={isPc ? '编辑' : ''}>
|
<Tooltip title={isPc ? '编辑' : ''}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user