This commit is contained in:
Vanessa 2023-12-04 16:24:15 +08:00
parent 47d06a6309
commit ccfa915e80

View File

@ -44,7 +44,6 @@ const loadPluginJS = async (app: App, item: IPluginData) => {
const exportsObj: { [key: string]: any } = {};
const moduleObj = {exports: exportsObj};
try {
debugger
runCode(item.js, "plugin:" + encodeURIComponent(item.name))(requireFunc, moduleObj, exportsObj);
} catch (e) {
console.error(`plugin ${item.name} run error:`, e);