Commit 20ec3501 authored by Maofei94's avatar Maofei94

perf: 修改web配置删除接口

parent e533ec09
Pipeline #23542 passed with stages
in 17 minutes 18 seconds
...@@ -37,10 +37,13 @@ export default props => { ...@@ -37,10 +37,13 @@ export default props => {
}); });
return; return;
} }
console.log(values.alarmWays, typeof values.alarmWays);
if (values.alarmWays !== null) {
values.alarmWays = values.alarmWays =
typeof values.alarmWays === 'string' typeof values.alarmWays === 'string'
? values.alarmWays ? values.alarmWays
: values.alarmWays.join(',') || ''; : values.alarmWays.join(',') || '';
}
// eslint-disable-next-line no-unused-expressions // eslint-disable-next-line no-unused-expressions
onOk && onOk(values); onOk && onOk(values);
}} }}
......
...@@ -127,7 +127,7 @@ const WebConfigPage = props => { ...@@ -127,7 +127,7 @@ const WebConfigPage = props => {
: webMode.integration, : webMode.integration,
)[1]; )[1];
if (client) { if (client) {
deleteWebsite(client) omsDeleteWebsite(client)
.then(res => { .then(res => {
if (res.code === 0 || res.success) { if (res.code === 0 || res.success) {
notification.success({ notification.success({
......
...@@ -155,5 +155,5 @@ export const editWebsite = params => { ...@@ -155,5 +155,5 @@ export const editWebsite = params => {
}; };
// 删除网站 // 删除网站
export const omsDeleteWebsite = params => export const omsDeleteWebsite = client =>
get(`${PUBLISH_SERVICE}/WebSite/DeleteWebsite`, params); get(`${PUBLISH_SERVICE}/WebSite/DeleteWebsite`, { client });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment