mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 14:40:22 +09:00
fix(12): 修复问题
This commit is contained in:
parent
e1fc468c4a
commit
7c8872beb9
@ -297,7 +297,9 @@ export function PluginPage() {
|
|||||||
|
|
||||||
const allPlugins = pluginStore
|
const allPlugins = pluginStore
|
||||||
.getAll()
|
.getAll()
|
||||||
.filter((m) => !getLang() || m.lang === getLang());
|
.filter(
|
||||||
|
(m) => !getLang() || m.lang === (getLang() == "cn" ? getLang() : "en"),
|
||||||
|
);
|
||||||
|
|
||||||
const [searchPlugins, setSearchPlugins] = useState<Plugin[]>([]);
|
const [searchPlugins, setSearchPlugins] = useState<Plugin[]>([]);
|
||||||
const [searchText, setSearchText] = useState("");
|
const [searchText, setSearchText] = useState("");
|
||||||
|
@ -317,7 +317,12 @@ export const useChatStore = create<ChatStore>()(
|
|||||||
const pluginStore = usePluginStore.getState();
|
const pluginStore = usePluginStore.getState();
|
||||||
const allPlugins = pluginStore
|
const allPlugins = pluginStore
|
||||||
.getAll()
|
.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
|
// save user's and bot's message
|
||||||
get().updateCurrentSession((session) => {
|
get().updateCurrentSession((session) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user