fix():移除多余代码

master
dongzeliang 2025-01-14 12:05:02 +08:00
parent 99d6c5c20d
commit 59c1602b4d
2 changed files with 3 additions and 3 deletions

View File

@ -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
})

View File

@ -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;