feat: 修改编辑商品后的跳转

This commit is contained in:
duan 2025-03-11 11:22:07 +08:00
parent e7517d3b4c
commit e70154f9bd
1 changed files with 3 additions and 2 deletions

View File

@ -771,10 +771,11 @@ const submitForm = async (formEl: FormInstance | undefined) => {
"title": "新增商品",
"path": "/product/addgoods",
"fullPath": "/product/addgoods",
"query": {}
})
router.push('/product/index');
}, 500);
setTimeout(() => {
router.push({ path: '/product/index' });
}, 1000);
} else {
ElMessage.error("请填写完整信息");
console.log('error submit!', fields)