This commit is contained in:
xiaojunnuo
2024-10-14 10:27:11 +08:00
parent 07043aff0c
commit 4caa2fad9d
5 changed files with 18 additions and 8 deletions
@@ -100,7 +100,7 @@ export class PluginService extends BaseService<PluginEntity> {
return records;
}
async setDisabled(opts: { id: number; name: string; type: string; disabled: boolean }) {
async setDisabled(opts: { id?: number; name?: string; type: string; disabled: boolean }) {
const { id, name, type, disabled } = opts;
if (!type) {
throw new Error('参数错误: type 不能为空');