Skip to content

Commit

Permalink
fix: import vue apis
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoyun8 committed Oct 8, 2024
1 parent f6da1a7 commit fb006a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/canvas/render/src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
*/

import { createApp, h, reactive } from 'vue'
import { createApp } from 'vue'
import { addScript, addStyle, dynamicImportComponents, updateDependencies } from '../../common'
import TinyI18nHost, { I18nInjectionKey } from '@opentiny/tiny-engine-common/js/i18n'
import Main, { api } from './RenderMain'
Expand Down Expand Up @@ -49,7 +49,7 @@ const renderer = {
const create = async (config) => {
const { beforeAppCreate, appCreated } = config.lifeCycles || {}
if (typeof beforeAppCreate === 'function') {
await beforeAppCreate({ Vue: { h, reactive }, canvasWin: window, api })
await beforeAppCreate({ api: renderer })
}
App && App.unmount()
App = null
Expand Down

0 comments on commit fb006a5

Please sign in to comment.