Skip to content

Commit

Permalink
Merge pull request #85 from terwer/dev
Browse files Browse the repository at this point in the history
fix: 紧急修复 PicGO 插件初始化失败问题
  • Loading branch information
terwer committed Aug 12, 2023
2 parents 31743ea + 3937259 commit 2ca0b99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
13 changes: 4 additions & 9 deletions src/main.ts
Expand Up @@ -24,10 +24,9 @@
*/

import App from "./App.vue"
import { createApp, provide } from "vue"
import { createApp } from "vue"
import { useVueRouter } from "./composables/useVueRouter.ts"
import { createAppLogger } from "../common/appLogger"
import { InjectKeys } from "./utils/injectKeys.ts"
import AppInstance from "./appInstance.ts"
import i18n from "./locales"
import FontAwesome from "~/src/composables/useFontAwesome.ts"
Expand All @@ -44,9 +43,8 @@ const logger = createAppLogger("vue-main-entry")
*/
const createVueApp = async () => {
// appInstance
// const appInstance = await AppInstance.getInstance()
// provide(InjectKeys.APP_INSTANCE, appInstance)
// logger.info("appInstance provided =>", appInstance)
const appInstance = await AppInstance.getInstance()
logger.info("appInstance inited =>", appInstance)

// 初始化 vue 实例
// https://stackoverflow.com/a/62383325/4037224
Expand All @@ -68,10 +66,7 @@ const createVueApp = async () => {

// 挂载 vue app
app.mount("#app")

// 暴露 Vue 实例
// provide(InjectKeys.VUE_INSTANCE, app)
// logger.info("vue app created")
logger.info("vue app created")
}

;(async () => {
Expand Down
32 changes: 0 additions & 32 deletions src/utils/injectKeys.ts

This file was deleted.

0 comments on commit 2ca0b99

Please sign in to comment.