fix: add test log

This commit is contained in:
shuai 2023-10-17 16:18:30 +08:00
parent 1913a4f30b
commit 7dfdf4d7e4
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ const Index: FC<Props> = ({
const pluginSlice: Plugin[] = [];
const plugins = PluginKit.getPlugins().filter((plugin) => plugin.activated);
console.log('default list', plugins);
plugins.forEach((plugin) => {
console.log('plugininfo ====', plugin);
if (type && slug_name) {
if (plugin.info.slug_name === slug_name && plugin.info.type === type) {
pluginSlice.push(plugin);
@ -49,7 +51,7 @@ const Index: FC<Props> = ({
* TODO: Rendering control for non-builtin plug-ins
* ps: Logic such as version compatibility determination can be placed here
*/
console.log('plugininfo ====', 111);
if (pluginSlice.length === 0) {
if (type === 'editor') {
return <div className={className}>{children}</div>;