This commit is contained in:
mkm 2024-08-07 18:32:40 +08:00
parent 5542d67b1e
commit d16b9b693f
1 changed files with 9 additions and 9 deletions

View File

@ -276,15 +276,15 @@ const handleSubmit = async () => {
stock_type: stock_type.value, stock_type: stock_type.value,
warehouse_id: warehouse_id.value warehouse_id: warehouse_id.value
}).then((res) => { }).then((res) => {
removeTab() // removeTab()
if (res.code == 1) { // if (res.code == 1) {
ElMessage.success(res.msg) // ElMessage.success(res.msg)
setTimeout(() => { setTimeout(() => {
removeTab() removeTab()
}, 2000) }, 2000)
} else { // } else {
ElMessage.error(res.msg) // ElMessage.error(res.msg)
} // }
// router.push({ // router.push({
// path: '/warehouse/warehouse_product' // path: '/warehouse/warehouse_product'