fix(12): 修复问题

This commit is contained in:
Hk-Gosuto
2023-09-05 19:08:29 +08:00
parent e1fc468c4a
commit 7c8872beb9
2 changed files with 9 additions and 2 deletions

View File

@@ -317,7 +317,12 @@ export const useChatStore = create<ChatStore>()(
const pluginStore = usePluginStore.getState();
const allPlugins = pluginStore
.getAll()
.filter((m) => (!getLang() || m.lang === getLang()) && m.enable);
.filter(
(m) =>
(!getLang() ||
m.lang === (getLang() == "cn" ? getLang() : "en")) &&
m.enable,
);
// save user's and bot's message
get().updateCurrentSession((session) => {