feat: 修改插件模型版本限制

This commit is contained in:
Hk-Gosuto
2023-08-21 23:55:08 +08:00
parent 609155b318
commit 987ddf5f0f
5 changed files with 11 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ export const createEmptyMask = () =>
lang: getLang(),
builtin: false,
createdAt: Date.now(),
usePlugins: useAppConfig.getState().modelConfig.model.endsWith("0613"),
usePlugins: !/03\d{2}$/.test(useAppConfig.getState().modelConfig.model),
} as Mask);
export const useMaskStore = create<MaskStore>()(