From 9df5f3b336444bb1ccc7e54761f8e203273ffe4c Mon Sep 17 00:00:00 2001 From: g7hoo Date: Wed, 24 Aug 2022 16:29:59 +0800 Subject: [PATCH] =?UTF-8?q?update=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/job/schedule-add-or-update.vue | 2 +- src/views/modules/sys/dept-add-or-update.vue | 2 +- src/views/modules/sys/params-add-or-update.vue | 2 +- src/views/modules/sys/role-add-or-update.vue | 2 +- src/views/modules/sys/user-add-or-update.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/modules/job/schedule-add-or-update.vue b/src/views/modules/job/schedule-add-or-update.vue index d036ef3..2de8da7 100644 --- a/src/views/modules/job/schedule-add-or-update.vue +++ b/src/views/modules/job/schedule-add-or-update.vue @@ -85,7 +85,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/schedule', this.dataForm).then(({ data: res }) => { + this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/schedule'), this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } diff --git a/src/views/modules/sys/dept-add-or-update.vue b/src/views/modules/sys/dept-add-or-update.vue index 09c78ea..e7bfc2c 100644 --- a/src/views/modules/sys/dept-add-or-update.vue +++ b/src/views/modules/sys/dept-add-or-update.vue @@ -127,7 +127,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/dept', this.dataForm) + this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/dept'), this.dataForm) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) diff --git a/src/views/modules/sys/params-add-or-update.vue b/src/views/modules/sys/params-add-or-update.vue index 4d216e0..d7b0237 100644 --- a/src/views/modules/sys/params-add-or-update.vue +++ b/src/views/modules/sys/params-add-or-update.vue @@ -72,7 +72,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/params', this.dataForm) + this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/params'), this.dataForm) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) diff --git a/src/views/modules/sys/role-add-or-update.vue b/src/views/modules/sys/role-add-or-update.vue index 5348299..170048d 100644 --- a/src/views/modules/sys/role-add-or-update.vue +++ b/src/views/modules/sys/role-add-or-update.vue @@ -115,7 +115,7 @@ export default { } this.dataForm.menuIdList = [...this.$refs.menuListTree.getHalfCheckedKeys(), ...this.$refs.menuListTree.getCheckedKeys()] this.dataForm.deptIdList = this.$refs.deptListTree.getCheckedKeys() - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/role', this.dataForm) + this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/role'), this.dataForm) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) diff --git a/src/views/modules/sys/user-add-or-update.vue b/src/views/modules/sys/user-add-or-update.vue index a7ed8a6..02fb2d6 100644 --- a/src/views/modules/sys/user-add-or-update.vue +++ b/src/views/modules/sys/user-add-or-update.vue @@ -166,7 +166,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', { + this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/user'), { ...this.dataForm, roleIdList: [...this.dataForm.roleIdList, ...this.roleIdListDefault] })