This commit is contained in:
HuangHai
2026-01-20 21:50:32 +08:00
parent 55e88777d9
commit 21fb8b39d8
6 changed files with 99 additions and 1 deletions

View File

@@ -20,7 +20,12 @@ createApp({
const douyinLoading = ref(false);
const douyinRecords = ref([]);
let douyinTimer = null;
// Douyin Summary State
const showSummaryDialog = ref(false);
const summaryLoading = ref(false);
const summaryText = ref('');
// Handle window resize
window.addEventListener('resize', () => {
isMobile.value = window.innerWidth <= 768;
@@ -468,6 +473,15 @@ createApp({
}
});
const renderedSummary = computed(() => {
if (!summaryText.value) return '';
try {
return marked.parse(summaryText.value);
} catch (e) {
return summaryText.value;
}
});
// ==========================================
// Watchers
// ==========================================