Skip to content

Commit

Permalink
fix 失误
Browse files Browse the repository at this point in the history
  • Loading branch information
2234839 committed Sep 19, 2023
1 parent c216205 commit 0126486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/src/pages/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { renderHTML } from "@/fs/render";
import { watchEffect } from "vue";
import { writeFile } from "@/util/writeFile";
import { S_Node } from "@/fs/siyuan_type";
const sy = vApi.file_getFile({
/** 排版元素 */
path: "data/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-abz7w6k/20200825162036-4dx365o.sy",
Expand All @@ -30,7 +31,7 @@
if (sy.value.fulfilled) {
return await htmlTemplate(
{
htmlContent: await renderHTML(sy.value.data),
htmlContent: await renderHTML(sy.value.data as S_Node),
level: 0,
title: "测试用页面",
},
Expand Down

0 comments on commit 0126486

Please sign in to comment.