File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 66import { watch , onUnmounted } from ' vue'
77import {
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'
1717import { useBroadcastChannel } from ' @vueuse/core'
1818import { constants } from ' @opentiny/tiny-engine-utils'
1919
@@ -23,8 +23,8 @@ const { message } = useModal()
2323export 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 })
You can’t perform that action at this time.
0 commit comments