Modal h函数写法
if (res.data.flag) {
const ocapWarn = res.data.ocaplList;
Modal.warning({
title: "提示",
content: h("div", {}, [
ocapWarn.map((item, index) => {
return h("div", {}, [
h(
"p",
`${index + 1}、${item.defectItem}(${
item.defectCode
})已触发执行选项${item.ocapType}`
),
h("p", `${item.scenarioActionsPlan}`),
]);
}),
h("p", "请外包厂按提示做好系统和实物的操作!"),
]),
onOk() {
waferiqcId ? onUpdate(type) : onFirst(type);
// console.log('ok');
},
});
}