mod 删除右下角二维码扫码通知
This commit is contained in:
@@ -15,40 +15,13 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import { App, Image } from 'antd';
|
||||
import React from 'react';
|
||||
import { useAsyncEffect } from 'ahooks';
|
||||
|
||||
type IProps = {
|
||||
children: React.JSX.Element;
|
||||
};
|
||||
|
||||
const PageContainer: React.FC<IProps> = (props) => {
|
||||
const { notification } = App.useApp();
|
||||
|
||||
useAsyncEffect(async () => {
|
||||
notification.open({
|
||||
key: 'notification',
|
||||
message: '提示',
|
||||
duration: null,
|
||||
placement: 'bottomRight',
|
||||
description: (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
|
||||
<Image src={'/ade5b70f.jpg'} width={180} preview={false} />
|
||||
<div>
|
||||
<span style={{ color: '#1890FF', textAlign: 'center', display: 'block' }}>
|
||||
扫码关注微信公众号,获取最新资讯。
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
style: {
|
||||
width: 220,
|
||||
marginBottom: 0,
|
||||
padding: 15,
|
||||
},
|
||||
});
|
||||
}, []);
|
||||
return <>{props.children}</>;
|
||||
};
|
||||
export default PageContainer;
|
||||
|
||||
@@ -15,40 +15,13 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import { App, Image } from 'antd';
|
||||
import React from 'react';
|
||||
import { useAsyncEffect } from 'ahooks';
|
||||
|
||||
type IProps = {
|
||||
children: React.JSX.Element;
|
||||
};
|
||||
|
||||
const PageContainer: React.FC<IProps> = (props) => {
|
||||
const { notification } = App.useApp();
|
||||
|
||||
useAsyncEffect(async () => {
|
||||
notification.open({
|
||||
key: 'notification',
|
||||
message: '提示',
|
||||
duration: null,
|
||||
placement: 'bottomRight',
|
||||
description: (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
|
||||
<Image src={'/ade5b70f.jpg'} width={180} preview={false} />
|
||||
<div>
|
||||
<span style={{ color: '#1890FF', textAlign: 'center', display: 'block' }}>
|
||||
扫码关注微信公众号,获取最新资讯。
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
style: {
|
||||
width: 220,
|
||||
marginBottom: 0,
|
||||
padding: 15,
|
||||
},
|
||||
});
|
||||
}, []);
|
||||
return <>{props.children}</>;
|
||||
};
|
||||
export default PageContainer;
|
||||
|
||||
Reference in New Issue
Block a user