fix: reference error

This commit is contained in:
zchengo
2022-12-03 19:36:55 +08:00
parent ee4fc940da
commit bd1dd7b7e3
+2 -2
View File
@@ -245,7 +245,7 @@ export default {
// 点击保存产品
const onSave = () => {
modalFormRef.value.validateFields().then(() => {
productForm.value.validateFields().then(() => {
if (operation.value == 1) {
createProduct(product).then((res) => {
if (res.data.code == 0) {
@@ -262,7 +262,7 @@ export default {
}
})
}
modalFormRef.value.resetFields()
productForm.value.resetFields()
visible.value = false;
});
};