From 4bd6ad1f4711d48a1a978a3587d5a62a0070c685 Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 4 Aug 2022 17:02:22 +0800 Subject: [PATCH] update --- src/mixins/view-module.js | 2 +- .../modules/monitoring/{equipmenattr.vue => equipmentattr.vue} | 0 src/views/modules/sys/menu-add-or-update.vue | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/views/modules/monitoring/{equipmenattr.vue => equipmentattr.vue} (100%) diff --git a/src/mixins/view-module.js b/src/mixins/view-module.js index 76047a5..c113c54 100644 --- a/src/mixins/view-module.js +++ b/src/mixins/view-module.js @@ -134,7 +134,7 @@ export default { type: 'warning' }).then(() => { this.$http.delete( - `${this.mixinViewModuleOptions.deleteURL}${this.mixinViewModuleOptions.deleteIsBatch ? '' : '/' + id}`, + this.$http.adornUrl(`${this.mixinViewModuleOptions.deleteURL}${this.mixinViewModuleOptions.deleteIsBatch ? '' : '/' + id}`), this.mixinViewModuleOptions.deleteIsBatch ? { 'data': id ? [id] : this.dataListSelections.map(item => item[this.mixinViewModuleOptions.deleteIsBatchKey]) } : {} diff --git a/src/views/modules/monitoring/equipmenattr.vue b/src/views/modules/monitoring/equipmentattr.vue similarity index 100% rename from src/views/modules/monitoring/equipmenattr.vue rename to src/views/modules/monitoring/equipmentattr.vue diff --git a/src/views/modules/sys/menu-add-or-update.vue b/src/views/modules/sys/menu-add-or-update.vue index 1cb2bbd..4c5949e 100644 --- a/src/views/modules/sys/menu-add-or-update.vue +++ b/src/views/modules/sys/menu-add-or-update.vue @@ -162,7 +162,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/menu', this.dataForm) + this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/menu'), this.dataForm) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg)