This commit is contained in:
Vanessa 2023-06-05 11:30:58 +08:00
parent 5c641120ae
commit 82ce65fa7e
2 changed files with 5 additions and 1 deletions

View file

@ -39,7 +39,7 @@ const loadPluginJS = async (app: App, item: IPluginData) => {
try {
runCode(item.js, "plugin:" + encodeURIComponent(item.name))(getObject, moduleObj, exportsObj);
} catch (e) {
console.error(`eval plugin ${item.name} error:`, e);
console.error(`plugin ${item.name} run error:`, e);
return;
}
const pluginClass = (moduleObj.exports || exportsObj).default || moduleObj.exports;