mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
02b62eba65
commit
953920e4de
3 changed files with 34 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ import {Plugin} from "./index";
|
|||
import {exportLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {API} from "./API";
|
||||
import {isMobile, isWindow} from "../util/functions";
|
||||
import {getFrontend, isMobile, isWindow} from "../util/functions";
|
||||
|
||||
const getObject = (key: string) => {
|
||||
const api = {
|
||||
|
|
@ -20,7 +20,7 @@ const runCode = (code: string, sourceURL: string) => {
|
|||
};
|
||||
|
||||
export const loadPlugins = async (app: App) => {
|
||||
const response = await fetchSyncPost("/api/petal/loadPetals");
|
||||
const response = await fetchSyncPost("/api/petal/loadPetals", {frontend: getFrontend()});
|
||||
let css = "";
|
||||
// 为加快启动速度,不进行 await
|
||||
response.data.forEach((item: IPluginData) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue