This commit is contained in:
Vanessa 2023-07-05 11:44:39 +08:00
parent bbf86aeeba
commit 3fee82ed9e

View File

@ -194,12 +194,14 @@ export class Outline extends Model {
}); });
if (this.isPreview) { if (this.isPreview) {
if (this.blockId) {
fetchPost("/api/export/preview", { fetchPost("/api/export/preview", {
id: this.blockId, id: this.blockId,
}, response => { }, response => {
response.data = response.data.outline; response.data = response.data.outline;
this.update(response); this.update(response);
}); });
}
} else { } else {
fetchPost("/api/outline/getDocOutline", { fetchPost("/api/outline/getDocOutline", {
id: this.blockId, id: this.blockId,