修复系统通知设置bug

This commit is contained in:
yafu 2023-07-20 10:29:51 +08:00
parent d1fb3f4390
commit d3e61ed880

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 ? '通知发送成功' : '通知关闭成功');