This commit is contained in:
张成
2025-11-24 13:23:42 +08:00
commit 5d7444cd65
156 changed files with 50653 additions and 0 deletions

27
admin/src/main.js Normal file
View File

@@ -0,0 +1,27 @@
// 引入依赖
import config from "../config/index.js";
import componentMap from "./router/component-map.js";
import AdminFramework from "./framework/admin-framework.js";
import CustomHomePage from "./views/home/index.vue";
import deviceModule from "./store/index.js";
const app = AdminFramework.createApp({
title: '我的管理系统',
apiUrl: config.apiUrl,
componentMap: componentMap,
HomePage: CustomHomePage, // 可选:自定义首页组件,覆盖整个首页
storeModules: {
device: deviceModule // 注册设备选择模块
}
})
// 挂载应用
app.$mount('#app')
// 全局暴露 app 实例(方便调试)
window.app = app
window.rootVue = app
// window.framework 已在文件开头暴露,无需重复