()
| 258 | } |
| 259 | |
| 260 | private getSettingPluginPath(): string { |
| 261 | const plugins = databaseAPI.dbGet('plugins') |
| 262 | if (!plugins || !Array.isArray(plugins)) { |
| 263 | throw new Error('未找到插件列表') |
| 264 | } |
| 265 | const settingPlugin = plugins.find((p: any) => p.name === 'setting') |
| 266 | if (!settingPlugin) { |
| 267 | throw new Error('未找到设置插件') |
| 268 | } |
| 269 | return settingPlugin.path |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | export default new PluginRedirectAPI() |
no test coverage detected