Skip to content

Commit a240bee

Browse files
committed
fix: sync newest change
1 parent c67f031 commit a240bee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/design-core/src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
import { watch, onUnmounted } from 'vue'
77
import {
88
getMergeRegistry,
9-
getPluginApi,
9+
getMetaApi,
1010
useModal,
1111
useApp,
1212
useNotify,
1313
useResource,
1414
useCanvas
1515
} from '@opentiny/tiny-engine-meta-register'
16-
import { isVsCodeEnv } from '@opentiny/tiny-engine-controller/js/environments'
16+
import { isVsCodeEnv } from '@opentiny/tiny-engine-common/js/environments'
1717
import { useBroadcastChannel } from '@vueuse/core'
1818
import { constants } from '@opentiny/tiny-engine-utils'
1919
@@ -23,8 +23,8 @@ const { message } = useModal()
2323
export default {
2424
setup() {
2525
const registry = getMergeRegistry()
26-
const materialsApi = getPluginApi('engine.plugins.materials')
27-
const blockApi = getPluginApi('engine.plugins.blockmanage')
26+
const materialsApi = getMetaApi('engine.plugins.materials')
27+
const blockApi = getMetaApi('engine.plugins.blockmanage')
2828
2929
// 此处接收画布内部的错误和警告提示
3030
const { data } = useBroadcastChannel({ name: BROADCAST_CHANNEL.Notify })

0 commit comments

Comments
 (0)