feat: 修改编辑商品后的跳转
This commit is contained in:
parent
e7517d3b4c
commit
e70154f9bd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue