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 => {
});
return;
}
values.alarmWays =
typeof values.alarmWays === 'string'
? values.alarmWays
: values.alarmWays.join(',') || '';
console.log(values.alarmWays, typeof values.alarmWays);
if (values.alarmWays !== null) {
values.alarmWays =
typeof values.alarmWays === 'string'
? values.alarmWays
: values.alarmWays.join(',') || '';
}
// eslint-disable-next-line no-unused-expressions
onOk && onOk(values);
}}
......
......@@ -127,7 +127,7 @@ const WebConfigPage = props => {
: webMode.integration,
)[1];
if (client) {
deleteWebsite(client)
omsDeleteWebsite(client)
.then(res => {
if (res.code === 0 || res.success) {
notification.success({
......
......@@ -155,5 +155,5 @@ export const editWebsite = params => {
};
// 删除网站
export const omsDeleteWebsite = params =>
get(`${PUBLISH_SERVICE}/WebSite/DeleteWebsite`, params);
export const omsDeleteWebsite = client =>
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