mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
🎨
This commit is contained in:
parent
bbf86aeeba
commit
3fee82ed9e
@ -117,7 +117,7 @@ export class Outline extends Model {
|
|||||||
} else {
|
} else {
|
||||||
openFileById({
|
openFileById({
|
||||||
app: options.app,
|
app: options.app,
|
||||||
id: this.blockId,
|
id: this.blockId,
|
||||||
mode: "preview",
|
mode: "preview",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -194,12 +194,14 @@ export class Outline extends Model {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (this.isPreview) {
|
if (this.isPreview) {
|
||||||
fetchPost("/api/export/preview", {
|
if (this.blockId) {
|
||||||
id: this.blockId,
|
fetchPost("/api/export/preview", {
|
||||||
}, response => {
|
id: this.blockId,
|
||||||
response.data = response.data.outline;
|
}, response => {
|
||||||
this.update(response);
|
response.data = response.data.outline;
|
||||||
});
|
this.update(response);
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fetchPost("/api/outline/getDocOutline", {
|
fetchPost("/api/outline/getDocOutline", {
|
||||||
id: this.blockId,
|
id: this.blockId,
|
||||||
|
Loading…
Reference in New Issue
Block a user