'commit'
This commit is contained in:
@@ -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
|
||||
// ==========================================
|
||||
|
||||
Reference in New Issue
Block a user