feat: 修改编辑商品后的跳转
This commit is contained in:
@@ -771,10 +771,11 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|||||||
"title": "新增商品",
|
"title": "新增商品",
|
||||||
"path": "/product/addgoods",
|
"path": "/product/addgoods",
|
||||||
"fullPath": "/product/addgoods",
|
"fullPath": "/product/addgoods",
|
||||||
"query": {}
|
|
||||||
})
|
})
|
||||||
router.push('/product/index');
|
|
||||||
}, 500);
|
}, 500);
|
||||||
|
setTimeout(() => {
|
||||||
|
router.push({ path: '/product/index' });
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
ElMessage.error("请填写完整信息");
|
ElMessage.error("请填写完整信息");
|
||||||
console.log('error submit!', fields)
|
console.log('error submit!', fields)
|
||||||
|
|||||||
Reference in New Issue
Block a user