Skip to content

Commit 67196f2

Browse files
committed
feat(new-registry): fix url
1 parent bd2cf40 commit 67196f2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

designer-demo/src/main.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ import { initHotfixRegistry } from '@opentiny/tiny-engine-meta-register'
1414
import 'virtual:svg-icons-register'
1515

1616
async function startApp() {
17-
const registry = await import('../registry')
18-
const { init } = await import('@opentiny/tiny-engine')
17+
const hotfixFile = await fetch('/hotfixRegistry.js')
1918
const hotfixRegistry =
2019
(await initHotfixRegistry({
21-
url: 'http://localhost:8090/hotfixRegistry.js'
20+
url: hotfixFile.url
2221
})) || {}
22+
const registry = await import('../registry')
23+
const { init } = await import('@opentiny/tiny-engine')
2324
init({
2425
// 合并多个注册表
2526
registry: [registry.default, hotfixRegistry],

0 commit comments

Comments
 (0)