diff --git a/spx-gui/TODO.md b/spx-gui/TODO.md new file mode 100644 index 000000000..8f4ccf14b --- /dev/null +++ b/spx-gui/TODO.md @@ -0,0 +1,2 @@ +* 避免到处 new XxxHelpers() +* XxxHelpers 是否有更合适的名字 diff --git a/spx-gui/src/App.vue b/spx-gui/src/App.vue index 21f047d20..7e482a1ea 100644 --- a/spx-gui/src/App.vue +++ b/spx-gui/src/App.vue @@ -26,6 +26,7 @@ import TutorialRoot from '@/components/tutorials/TutorialRoot.vue' import { SpotlightUI } from '@/utils/spotlight' import { useI18n } from '@/utils/i18n' import { useInstallRouteLoading } from '@/utils/route-loading' +import { provideAppCtx } from './components/common/app-context' const { t } = useI18n() @@ -44,6 +45,7 @@ const config = computed(() => ({ })) useInstallRouteLoading() +provideAppCtx()