Fix preview platform switching, add stale task cleanup on startup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user