|
@@ -168,6 +168,9 @@ $(document).ready(function () {
|
|
|
$('#setting-custom').find('input:checked').each(function() {
|
|
|
type.push($(this).data('type'))
|
|
|
})
|
|
|
+ if (!type.length) {
|
|
|
+ return toastr.error('请勾选需要拷贝的属性')
|
|
|
+ }
|
|
|
const id = $('#copyModalContent').find('input:checked').data('tid');
|
|
|
if (id) {
|
|
|
postData(window.location.pathname + '/copy-setting', { id, type }, function() {
|