mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
fix: fix API endpoint URL in fetchPost calls (#7918)
This commit is contained in:
@@ -243,7 +243,7 @@ export class BlockPanel {
|
||||
|
||||
private initProtyle(editorElement: HTMLElement) {
|
||||
const index = parseInt(editorElement.getAttribute("data-index"));
|
||||
fetchPost("api/block/getBlockInfo", {id: this.nodeIds[index]}, (response) => {
|
||||
fetchPost("/api/block/getBlockInfo", {id: this.nodeIds[index]}, (response) => {
|
||||
if (response.code === 3) {
|
||||
showMessage(response.msg);
|
||||
return;
|
||||
|
||||
@@ -21,7 +21,7 @@ export const openNewWindow = (tab: Tab) => {
|
||||
};
|
||||
|
||||
export const openNewWindowById = (id: string) => {
|
||||
fetchPost("api/block/getBlockInfo", {id}, (response) => {
|
||||
fetchPost("/api/block/getBlockInfo", {id}, (response) => {
|
||||
if (response.code === 3) {
|
||||
showMessage(response.msg);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user