mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
fix: fix API endpoint URL in fetchPost calls (#7918)
This commit is contained in:
parent
7b444f65e3
commit
52547857d7
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue