diff --git a/app/appearance/icons/ant/icon.js b/app/appearance/icons/ant/icon.js index 2059c1d3f..5d8047002 100644 --- a/app/appearance/icons/ant/icon.js +++ b/app/appearance/icons/ant/icon.js @@ -1,4 +1,4 @@ -document.body.insertAdjacentHTML('afterBegin', ` +document.body.insertAdjacentHTML('afterbegin', ` diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts index 367f8490e..ade72c197 100644 --- a/app/src/plugin/index.ts +++ b/app/src/plugin/index.ts @@ -54,6 +54,11 @@ export class Plugin { // 布局加载完成 } + public addIcons(svg: string) { + document.body.insertAdjacentHTML("afterbegin", ` +${svg}`); + } + public addTopBar(options: { icon: string, title: string,