diff --git a/src/views/product/indexconfig/addgoods.vue b/src/views/product/indexconfig/addgoods.vue index 9200ca8..4460af7 100644 --- a/src/views/product/indexconfig/addgoods.vue +++ b/src/views/product/indexconfig/addgoods.vue @@ -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)