diff --git a/content-config.html b/content-config.html index 8299c37..03ae527 100644 --- a/content-config.html +++ b/content-config.html @@ -510,6 +510,7 @@ let currentFile = null; let currentImageUrl = ''; + let currentVideoUrl = ''; function showToast(msg) { toastEl.textContent = msg; @@ -534,6 +535,7 @@ }); if (res && res.code === 200 && res.data && res.data.img_url) { currentImageUrl = res.data.img_url; + currentVideoUrl = res.data.video; showPreview(currentImageUrl); } } catch (e) { @@ -635,6 +637,7 @@ const formData = new FormData(); formData.append('id', 1); formData.append('url', currentImageUrl); + formData.append('video', currentVideoUrl); const res = await saveContentConfigApi(formData); if (res && res.code === 200) { showToast('保存配置成功');