修复食谱备注

This commit is contained in:
huangdeliang 2021-03-26 18:09:12 +08:00
parent 36384820bb
commit d75984ed3a
2 changed files with 6 additions and 2 deletions

View File

@ -229,7 +229,7 @@ export default {
}
recipesDom.style.overflow = "visible";
html2canvans(recipesDom, {
scale: 2,
scale: 1.5,
height: recipesDom.scrollHeight,
}).then((canvas) => {
const { name } = this.healthyData;

View File

@ -83,7 +83,11 @@ export default {
obj[cur.type] = [];
}
let tarMenu = cur;
if (!tarMenu.methods && tarMenu.igdList.length === 1) {
if (
!tarMenu.methods &&
!tarMenu.remark &&
tarMenu.igdList.length === 1
) {
tarMenu = tarMenu.igdList[0];
tarMenu.cusStr = `${this.cusWeightDict[tarMenu.cusWeight] || ""}${
this.cusUnitDict[tarMenu.cusUnit] || ""