Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
remove(record.username).then(() => {
notification.success({
message: `${formatMessage({ id: 'component.global.delete' })} ${formatMessage({
id: 'menu.consumer',
})} ${formatMessage({ id: 'component.status.success' })}`,
});
/* eslint-disable no-unused-expressions */
ref.current?.reload();
});
}}
delRole = async (id) => {
try {
await delRole({ id: id });
notification.success({
placement: 'bottomLeft bottomRight',
message: '删除成功',
});
} catch (e) {
}
this.refresh()
}
editModalOnCancel = () => {
clipboard.on('success', () => {
notification.success({
message: 'Notification',
description: 'Copy Success'
});
});
}
const notifySuccess=(userContext)=>{
notification.success({
message: appLocaleName(userContext,'Success'),
description: appLocaleName(userContext,'Success'),
})
}
callback: data => {
notification.success({
message: "安装成功"
});
this.fetchPlugins();
this.props.onInstallSuccess && this.props.onInstallSuccess();
}
});
const notifySuccess=(userContext)=>{
notification.success({
message: appLocaleName(userContext,'Success'),
description: appLocaleName(userContext,'Success'),
})
}
const notifySuccess=(userContext)=>{
notification.success({
message: appLocaleName(userContext,'Success'),
description: appLocaleName(userContext,'Success'),
})
}
axios.delete(base_url).then((res) => {
let oldData = this.state.data;
oldData.splice(index, 1);
this.setState({
data: oldData
});
notification.success({
message: '操作提示',
description: '内容已删除成功!',
});
});
},
const notifySuccess=(userContext)=>{
notification.success({
message: appLocaleName(userContext,'Success'),
description: appLocaleName(userContext,'Success'),
})
}
const notifySuccess=(userContext)=>{
notification.success({
message: appLocaleName(userContext,'Success'),
description: appLocaleName(userContext,'Success'),
})
}