增加PushMe消息通道 (#2018),修复系统设置保存通知

This commit is contained in:
雨思
2023-07-20 13:19:39 +08:00
committed by GitHub
parent 56eb0c5408
commit 373b8c97d7
7 changed files with 108 additions and 6 deletions
+1 -3
View File
@@ -19,9 +19,7 @@ const NotificationSetting = ({ data }: any) => {
}
request
.put(`${config.apiPrefix}user/notification`, {
values,
})
.put(`${config.apiPrefix}user/notification`, values)
.then(({ code, data }) => {
if (code === 200) {
message.success(values.type ? '通知发送成功' : '通知关闭成功');