From 71fe304e39ea86b290cb618b8effbdbd2bdc9a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 30 Jan 2023 09:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsCategory/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/system/goodsCategory/index.vue b/src/views/system/goodsCategory/index.vue index 2914662..ef54bef 100644 --- a/src/views/system/goodsCategory/index.vue +++ b/src/views/system/goodsCategory/index.vue @@ -446,6 +446,10 @@ export default { } this.open = false; this.reset(); + this.$nextTick(() => { + // 延时到下一帧才开始,也就是页面刚刚渲染结束!! + this.$refs.form.clearValidate(); + }); }, // 表单重置 reset() { @@ -555,9 +559,7 @@ export default { var obj = { pictureUrlList: [] }; obj.pictureUrlList.push(row.goodsCategoryPicture); if (obj.pictureUrlList.length > 0) { - updatePicture(obj).then((res) => { - console.log(res); - }); + updatePicture(obj).then((res) => {}); } this.getList(); this.info();