This commit is contained in:
@@ -1380,11 +1380,11 @@
|
||||
const input = document.querySelector(`[data-target-banner="${currentUploadTarget}"], [data-target-honor="${currentUploadTarget}"], [data-target-side="${currentUploadTarget}"]`)
|
||||
?.closest('.upload-control')
|
||||
?.querySelector('input');
|
||||
if (input) input.value = url.startsWith('/') ? url : '/' + url;
|
||||
if (input) input.value = url;
|
||||
} else {
|
||||
// 普通字段
|
||||
const input = document.querySelector(`input[name="${currentUploadTarget}"]`);
|
||||
if (input) input.value = url.startsWith('/') ? url : '/' + url;
|
||||
if (input) input.value = url;
|
||||
}
|
||||
|
||||
alert('上传成功');
|
||||
|
||||
Reference in New Issue
Block a user