no message

This commit is contained in:
蔡玲
2024-12-09 17:40:39 +08:00
parent bbb59559fb
commit 660c7f9d8f

View File

@@ -205,7 +205,8 @@ export default {
this._updateMaterialInfo(event.target.value) this._updateMaterialInfo(event.target.value)
}, },
async _updateMaterialInfo (e) { async _updateMaterialInfo (e) {
let res = await updateMaterialInfo('1', e) let id = this.itemData.length > 0 ? this.itemData[0].material_id : ''
let res = await updateMaterialInfo(id, e)
if (res.code === '200') { if (res.code === '200') {
this.$message({ this.$message({
message: '操作成功', message: '操作成功',