Fix preview platform switching, add stale task cleanup on startup

This commit is contained in:
Yuzhiran Dev
2026-05-18 23:38:30 +08:00
parent 7b4e52743b
commit 671cec58fa
2 changed files with 29 additions and 0 deletions
+4
View File
@@ -394,6 +394,10 @@ const TopicsApp = {
await this.fetchTodayCount();
} catch (e) { if (e !== 'cancel') this.$message.error('删除失败'); }
},
switchPlatform(platform) {
if (this.editing) this.cancelEdit();
this.previewPlatform = platform;
},
startEdit() {
this.editContent = this.currentPreviewBody;
this.editing = true;