mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-14 05:03:43 +08:00
feat: 添加维基百科插件
This commit is contained in:
@@ -43,7 +43,7 @@ export const createEmptyPlugin = () =>
|
||||
builtin: false,
|
||||
createdAt: Date.now(),
|
||||
enable: true,
|
||||
}) as Plugin;
|
||||
} as Plugin);
|
||||
|
||||
export const usePluginStore = create<PluginStore>()(
|
||||
persist(
|
||||
@@ -99,11 +99,11 @@ export const usePluginStore = create<PluginStore>()(
|
||||
(m) =>
|
||||
({
|
||||
...m,
|
||||
}) as Plugin,
|
||||
} as Plugin),
|
||||
);
|
||||
const pluginStatuses = get().pluginStatuses;
|
||||
return userPlugins.concat(buildinPlugins).map((e) => {
|
||||
e.enable = pluginStatuses[e.id] ?? true;
|
||||
e.enable = pluginStatuses[e.id] ?? e.enable;
|
||||
return e;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user