From 146fd49fa8579b6231e89ed8cc0100b1ec19fb7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 20 Feb 2023 17:18:57 +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/InformationCategory/index.vue | 5 ++++- src/views/system/poser/index.vue | 17 +++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/system/InformationCategory/index.vue b/src/views/system/InformationCategory/index.vue index 899de4b..b6eefb2 100644 --- a/src/views/system/InformationCategory/index.vue +++ b/src/views/system/InformationCategory/index.vue @@ -515,7 +515,10 @@ export default { this.getList(); }); } else { - this.form.informationCategoryList[0].sort=parseInt( this.form.informationCategoryList[0].sort) + if(this.form.informationCategoryList[0].sort){ + this.form.informationCategoryList[0].sort=parseInt( this.form.informationCategoryList[0].sort) + } + addInformationCategory(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.addopen = false; diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index 205c888..05d8dd1 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -278,12 +278,11 @@