diff --git a/inventory-web/src/App.vue b/inventory-web/src/App.vue index 1addb68..06a9dfe 100644 --- a/inventory-web/src/App.vue +++ b/inventory-web/src/App.vue @@ -234,7 +234,7 @@ const handleLogout = () => { diff --git a/inventory-web/src/views/bom/BomManage.vue b/inventory-web/src/views/bom/BomManage.vue index ebaf54b..b05c4c0 100644 --- a/inventory-web/src/views/bom/BomManage.vue +++ b/inventory-web/src/views/bom/BomManage.vue @@ -616,7 +616,7 @@ const fetchBomList = async () => { const res = await getBomList({ keyword: searchKeyword.value }) if (res.code === 200) { bomGroups.value = res.data - activeCategories.value = res.data.map((g: any) => g.category) + activeCategories.value = [] } } finally { loading.value = false } } diff --git a/inventory-web/src/views/material/list.vue b/inventory-web/src/views/material/list.vue index cdd7d0d..6f00d5e 100644 --- a/inventory-web/src/views/material/list.vue +++ b/inventory-web/src/views/material/list.vue @@ -1566,7 +1566,7 @@ const beforeAvatarUpload = (rawFile: any) => { return false; } const isCompressed = ['application/zip', 'application/x-zip-compressed', 'application/x-rar-compressed', 'application/vnd.rar', 'application/x-7z-compressed'].includes(rawFile.type); - const maxMB = isCompressed ? 50 : 10; + const maxMB = 150; if (rawFile.size / 1024 / 1024 > maxMB) { ElMessage.error(`文件不能超过 ${maxMB}MB`); return false;