File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ProCard from '@ant-design/pro-card' ;
33
4- import { IRoute , Link } from 'umi' ;
54import { PageContainer } from '@ant-design/pro-layout' ;
6- import { Affix , Button , Space } from 'antd' ;
7- import { UpCircleOutlined } from '@ant-design/icons ' ;
5+ import { BackTop , Space } from 'antd' ;
6+ import { IRoute , Link } from 'umi ' ;
87
9- import UserInfo from './component/UserInfo' ;
108import AppQrcode from './component/AppQrcode' ;
9+ import UserInfo from './component/UserInfo' ;
1110
1211const getCurrentRoute = ( route : IRoute , path : string ) : IRoute | undefined => {
1312 let target ;
@@ -95,22 +94,7 @@ const Layout: React.FC<React.PropsWithChildren<Props>> = (props) => {
9594 </ ProCard >
9695 </ ProCard >
9796
98- < Affix
99- offsetBottom = { 50 }
100- style = { {
101- position : 'fixed' ,
102- right : '24px' ,
103- } }
104- >
105- < Button
106- onClick = { ( ) => {
107- window . scrollTo ( 0 , 0 ) ;
108- } }
109- >
110- < UpCircleOutlined />
111- 回到顶部
112- </ Button >
113- </ Affix >
97+ < BackTop />
11498 </ PageContainer >
11599 ) ;
116100} ;
You can’t perform that action at this time.
0 commit comments