This commit is contained in:
张成
2025-11-26 20:25:02 +08:00
parent 60f13c3ad7
commit 4db078c80a
6 changed files with 167 additions and 17 deletions

View File

@@ -10,11 +10,14 @@ const app = AdminFramework.createApp({
title: '我的管理系统',
apiUrl: config.apiUrl,
componentMap: componentMap,
HomePage: CustomHomePage, // 可选:自定义首页组件,覆盖整个首页
storeModules: {
device: deviceModule // 注册设备选择模块
}
HomePage: CustomHomePage // 可选:自定义首页组件,覆盖整个首页
})
// 手动注册 store 模块(如果框架不支持 storeModules 参数)
if (app.$store && !app.$store.hasModule(['device'])) {
app.$store.registerModule('device', deviceModule)
}
// 挂载应用
app.$mount('#app')