Skip to content

Commit

Permalink
# fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Nov 23, 2023
1 parent 46ead28 commit e5e389e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spug_web/src/pages/system/setting/PushSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default observer(function () {
if (pushKey) {
fetchBalance()
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

function fetchBalance() {
Expand All @@ -46,6 +47,10 @@ export default observer(function () {
}

function handleUnbind() {
if (store.settings.MFA?.enable) {
message.error('请先关闭登录MFA认证,否则将造成无法登录');
return
}
setLoading(true);
http.post('/api/setting/push/bind/', {spug_push_key: ''})
.then(() => {
Expand All @@ -64,8 +69,8 @@ export default observer(function () {
<div className={css.title}>推送服务设置</div>
<div style={{maxWidth: 340}}>
<Form.Item label="推送助手账户绑定" labelCol={{span: 24}} style={{marginTop: 12}}
extra={<div>请登录 <Link href="https://push.spug.cc/user/info" title="推送助手"/>,至个人中心 /
个人设置查看用户ID,注意保密该ID请勿泄漏给第三方。</div>}>
extra={<div>请登录推送助手,至个人中心 / 个人设置查看用户ID,注意保密该ID请勿泄漏给第三方。<Link
href="https://push.spug.cc/guide/spug" title="配置手册"/></div>}>

{spugPushKey ? (
<Input.Group compact>
Expand Down

0 comments on commit e5e389e

Please sign in to comment.