This commit is contained in:
parent
7087766ce4
commit
d982fd1dde
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import {fetchPost} from "../../util/fetch";
|
||||
|
||||
export const previewTemplate = (pathString: string, element: Element) => {
|
||||
fetchPost("/api/file/getFile", {path: pathString.replace(window.siyuan.config.system.dataDir, "")}, (response) => {
|
||||
fetchPost("/api/file/getFile", {path: pathString.replace(window.siyuan.config.system.dataDir.substring(0, window.siyuan.config.system.dataDir.length - 4), "")}, (response) => {
|
||||
element.innerHTML = response.data;
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue