File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
spug_web/src/pages/system/setting Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export default observer(function () {
2121 if ( pushKey ) {
2222 fetchBalance ( )
2323 }
24+ // eslint-disable-next-line react-hooks/exhaustive-deps
2425 } , [ ] ) ;
2526
2627 function fetchBalance ( ) {
@@ -46,6 +47,10 @@ export default observer(function () {
4647 }
4748
4849 function handleUnbind ( ) {
50+ if ( store . settings . MFA ?. enable ) {
51+ message . error ( '请先关闭登录MFA认证,否则将造成无法登录' ) ;
52+ return
53+ }
4954 setLoading ( true ) ;
5055 http . post ( '/api/setting/push/bind/' , { spug_push_key : '' } )
5156 . then ( ( ) => {
@@ -64,8 +69,8 @@ export default observer(function () {
6469 < div className = { css . title } > 推送服务设置</ div >
6570 < div style = { { maxWidth : 340 } } >
6671 < Form . Item label = "推送助手账户绑定" labelCol = { { span : 24 } } style = { { marginTop : 12 } }
67- extra = { < div > 请登录 < Link href = "https://push.spug.cc/user/info" title = "推送助手" /> ,至个人中心 /
68- 个人设置查看用户ID,注意保密该ID请勿泄漏给第三方。 </ div > } >
72+ extra = { < div > 请登录推送助手 ,至个人中心 / 个人设置查看用户ID,注意保密该ID请勿泄漏给第三方。 < Link
73+ href = "https://push.spug.cc/guide/spug" title = "配置手册" /> </ div > } >
6974
7075 { spugPushKey ? (
7176 < Input . Group compact >
You can’t perform that action at this time.
0 commit comments