mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 20:53:45 +08:00
fix(12): 修复问题
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user