mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 06:30:16 +09:00
fix(12): 修复问题
This commit is contained in:
parent
e1fc468c4a
commit
7c8872beb9
@ -297,7 +297,9 @@ export function PluginPage() {
|
||||
|
||||
const allPlugins = pluginStore
|
||||
.getAll()
|
||||
.filter((m) => !getLang() || m.lang === getLang());
|
||||
.filter(
|
||||
(m) => !getLang() || m.lang === (getLang() == "cn" ? getLang() : "en"),
|
||||
);
|
||||
|
||||
const [searchPlugins, setSearchPlugins] = useState<Plugin[]>([]);
|
||||
const [searchText, setSearchText] = useState("");
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user