mirror of
https://github.com/certd/certd.git
synced 2026-04-15 05:00:52 +08:00
chore: 修改metadata scriptPath的相对位置
This commit is contained in:
@@ -307,7 +307,7 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
|
||||
private async getPluginClassFromFile(item: any) {
|
||||
const scriptFilePath = item.scriptFilePath;
|
||||
const res = await import((`${scriptFilePath}`))
|
||||
const res = await import((`../../..${scriptFilePath}`))
|
||||
const classNames = Object.keys(res)
|
||||
return res[classNames[classNames.length - 1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user