还原上一步

This commit is contained in:
pushuo 2022-09-09 10:59:52 +08:00 committed by Edward Yang
parent 5b89353afe
commit 49e8df844b
1 changed files with 9 additions and 20 deletions

View File

@ -357,28 +357,17 @@
null;
}
$.ajax({
url: 'admin/'+url,
// dataType: 'json',
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
// beforeSend: function() { self.loading = true;; },
complete: function() { self.nameLoading = false; },
success: function (json) {
console.log(json);
$http.get(url, null, {hload: true, hmsg: true}).then((res) => {
if (res.data) {
self.name = res.data;
} else {
self.name = '{{ __('admin/builder.text_no_data') }}';
}
}).catch(() => {
self.name = '{{ __('admin/builder.text_no_data') }}';
}).finally(() => {
self.nameLoading = false;
});
// $http.get(url, null, {hload: true, hmsg: true}).then((res) => {
// if (res.data) {
// self.name = res.data;
// } else {
// self.name = '{{ __('admin/builder.text_no_data') }}';
// }
// }).catch(() => {
// self.name = '{{ __('admin/builder.text_no_data') }}';
// }).finally(() => {
// self.nameLoading = false;
// });
},
}
});