mirror of https://gitee.com/answerdev/answer.git
fix: add test log
This commit is contained in:
parent
1913a4f30b
commit
7dfdf4d7e4
|
@ -29,7 +29,9 @@ const Index: FC<Props> = ({
|
||||||
const pluginSlice: Plugin[] = [];
|
const pluginSlice: Plugin[] = [];
|
||||||
const plugins = PluginKit.getPlugins().filter((plugin) => plugin.activated);
|
const plugins = PluginKit.getPlugins().filter((plugin) => plugin.activated);
|
||||||
|
|
||||||
|
console.log('default list', plugins);
|
||||||
plugins.forEach((plugin) => {
|
plugins.forEach((plugin) => {
|
||||||
|
console.log('plugininfo ====', plugin);
|
||||||
if (type && slug_name) {
|
if (type && slug_name) {
|
||||||
if (plugin.info.slug_name === slug_name && plugin.info.type === type) {
|
if (plugin.info.slug_name === slug_name && plugin.info.type === type) {
|
||||||
pluginSlice.push(plugin);
|
pluginSlice.push(plugin);
|
||||||
|
@ -49,7 +51,7 @@ const Index: FC<Props> = ({
|
||||||
* TODO: Rendering control for non-builtin plug-ins
|
* TODO: Rendering control for non-builtin plug-ins
|
||||||
* ps: Logic such as version compatibility determination can be placed here
|
* ps: Logic such as version compatibility determination can be placed here
|
||||||
*/
|
*/
|
||||||
|
console.log('plugininfo ====', 111);
|
||||||
if (pluginSlice.length === 0) {
|
if (pluginSlice.length === 0) {
|
||||||
if (type === 'editor') {
|
if (type === 'editor') {
|
||||||
return <div className={className}>{children}</div>;
|
return <div className={className}>{children}</div>;
|
||||||
|
|
Loading…
Reference in New Issue