🐛 修复 BUG

This commit is contained in:
Wisp X
2022-01-13 11:37:46 +08:00
parent 81016e5643
commit 5dff05f791
+14 -12
View File
@@ -637,18 +637,20 @@
})
}
}).then(result => {
let selected = ds.getSelection().map(item => $(item).data('id'));
axios.put('{{ route('user.images.permission') }}', {
ids: selected,
permission: result.value,
}).then(response => {
if (response.data.status) {
ds.clearSelection();
toastr.success(response.data.message);
} else {
toastr.warning(response.data.message);
}
});
if (result.isConfirmed) {
let selected = ds.getSelection().map(item => $(item).data('id'));
axios.put('{{ route('user.images.permission') }}', {
ids: selected,
permission: result.value,
}).then(response => {
if (response.data.status) {
ds.clearSelection();
toastr.success(response.data.message);
} else {
toastr.warning(response.data.message);
}
});
}
});
},
},