# 优化操作确认

dependabot/pip/spug_api/paramiko-3.4.0
vapao 2023-11-10 16:30:14 +08:00
parent 1c955c0332
commit 60e7ab86bb
1 changed files with 4 additions and 7 deletions

View File

@ -5,7 +5,7 @@
*/ */
import React, {useEffect, useState} from 'react'; import React, {useEffect, useState} from 'react';
import {observer} from 'mobx-react'; import {observer} from 'mobx-react';
import {Form, Input, Button, Spin, message} from 'antd'; import {Form, Input, Button, Spin, Popconfirm, message} from 'antd';
import {Link} from 'components'; import {Link} from 'components';
import css from './index.module.css'; import css from './index.module.css';
import {http, clsNames} from 'libs'; import {http, clsNames} from 'libs';
@ -71,12 +71,9 @@ export default observer(function () {
<Input.Group compact> <Input.Group compact>
<div className={css.keyText} <div className={css.keyText}
style={{width: 'calc(100% - 100px)', lineHeight: '32px', fontWeight: 'bold'}}>{spugPushKey}</div> style={{width: 'calc(100% - 100px)', lineHeight: '32px', fontWeight: 'bold'}}>{spugPushKey}</div>
<Button <Popconfirm title="确定要解除绑定?" onConfirm={handleUnbind}>
ghost <Button ghost type="danger" style={{width: 80, marginLeft: 20}} loading={loading}>解绑</Button>
type="danger" </Popconfirm>
style={{width: 80, marginLeft: 20}}
onClick={handleUnbind}
loading={loading}>解绑</Button>
</Input.Group> </Input.Group>
) : ( ) : (
<Input.Group compact> <Input.Group compact>