From 59c1602b4dbfba42fe6da92fcafbf8e405dbf489 Mon Sep 17 00:00:00 2001 From: dongzeliang <2746733890@qq.com> Date: Tue, 14 Jan 2025 12:05:02 +0800 Subject: [PATCH] =?UTF-8?q?fix()=EF=BC=9A=E7=A7=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/config.js | 2 +- src/views/system/config/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/system/config.js b/src/api/system/config.js index bc3d35c..41596c5 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -37,7 +37,7 @@ export function addConfig(data) { // 修改参数配置 export function updateConfig(data) { return request({ - url: '/system/config', + url: '/system/config/'+data.configId, method: 'PUT', data: data }) diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index 792eafd..3200b83 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -244,7 +244,7 @@ function resetQuery() { /** 多选框选中数据 */ function handleSelectionChange(selection) { ids.value = selection.map(item => item.configId); - single.value = selection.length != 1; + single.value = selection.length !== 1; multiple.value = !selection.length; } @@ -270,7 +270,7 @@ function handleUpdate(row) { function submitForm() { proxy.$refs["configRef"].validate(valid => { if (valid) { - if (form.value.configId != undefined) { + if (form.value.configId !== undefined) { updateConfig(form.value).then(response => { proxy.$modal.msgSuccess("修改成功"); open.value = false;