提交 0f79c738 编写于 作者: KK's avatar KK

多数据删除提示异常

上级 68a56ef5
......@@ -372,13 +372,13 @@
const _remove = async () => {
let _context: any = { ${appde.getCodeName()?lower_case}: keys.join(';') }
const response: any = await this.service.delete(this.removeAction, Object.assign({}, this.context, _context), arg, this.showBusyIndicator);
if (response && response.status === 200) {
if (response && response.status === 200 && response.data.records) {
this.$notice.success((this.$t('app.message.deleteSccess') as string));
this.load();
this.closeSliding();
resolve(response);
} else {
this.$notice.error(response.message);
this.$notice.error(response.message?response.message:"删除失败");
reject(response);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册