From e437812fd576e9cc67e01fd102ab5b95232f1cec Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Sat, 8 Oct 2022 08:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/resourceClassification.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue b/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue index 36d26f4b..b9275d3f 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue @@ -38,8 +38,8 @@ @@ -104,9 +104,16 @@ export default { } }) }, - onConfirm() { - } + onConfirm() { + this.$refs.form.validate((valid) => { + if(valid) { + this.instance.post(`/app/appresourcecategory/addOrUpdate`, ...this.form).then(res=> { + console.log(res,this.form.categoryIcon); + }) + } + }) + }, } }