Commit 29101503 by zhuzhequan

扫码逻辑代码整理

parent b8a1b23c
...@@ -333,9 +333,7 @@ export default { ...@@ -333,9 +333,7 @@ export default {
device: this.$store.state.desktopDevice, device: this.$store.state.desktopDevice,
type: this.factoryType, type: this.factoryType,
}); });
if (res.data.length === 0) if (!res.data.length) return this.$message.warning("未找到素材图!");
return this.$message.warning("未找到素材图!");
this.imgList = [];
res.data.forEach((el) => { res.data.forEach((el) => {
imageResList = imageResList.concat(el.list || []); imageResList = imageResList.concat(el.list || []);
}); });
......
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