Browse Source

fix: 解决bom编辑,报错publishedTime报错。

tanzx 1 week ago
parent
commit
cb04900789
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/api/material/BOM.js

+ 3 - 0
src/api/material/BOM.js

@@ -207,6 +207,9 @@ export async function getBom(params) {
 
 // 修改BOM属性
 export async function bomCategoryUpdate(data) {
+  if(data && data.category){
+    delete data.category;
+  }
   const res = await request.post(`/main/bomCategory/update`, data);
   if (res.data.code == 0) {
     return res.data;