mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-09 04:19:32 +08:00
✨ 图片重命名功能
This commit is contained in:
parent
f36ba0db6b
commit
3e911db0ca
@ -472,7 +472,7 @@
|
||||
Swal.fire({
|
||||
title: '请输入图片名称',
|
||||
input: 'text',
|
||||
value: item.filename,
|
||||
inputValue: item.filename,
|
||||
inputAttributes: {
|
||||
autocapitalize: 'off'
|
||||
},
|
||||
@ -495,6 +495,8 @@
|
||||
if (result.isConfirmed) {
|
||||
if (result.value.status) {
|
||||
$(e).find('p.filename').attr('title', result.value.data.filename).text(result.value.data.filename)
|
||||
item.filename = result.value.data.filename;
|
||||
$(e).data('json', item);
|
||||
toastr.success(result.value.message);
|
||||
} else {
|
||||
toastr.error(result.value.message);
|
||||
|
Loading…
Reference in New Issue
Block a user