fix():移除多余代码
parent
99d6c5c20d
commit
59c1602b4d
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue