// 引入 Admin Framework（框架内部已包含所有依赖和样式）
import AdminFramework from "./framework/admin-framework.js";
import Vue from "vue";
import componentMap from "./router/component-map.js";

import CustomTabs from "./components/CustomTabs.vue";
import CustomTabPane from "./components/CustomTabPane.vue";

import config from "../config/index.js";

import "./assets/css/index.less";

const apiUrl = config.apiUrl;

const app = AdminFramework.createApp({
  title: "前后端模板",
  apiUrl: apiUrl,
  componentMap: componentMap,
  onReady() {
    console.log("应用已准备就绪");
  },
});

AdminFramework.registerComponents(Vue, {
  CustomTabs: CustomTabs,
  CustomTabPane: CustomTabPane,
});

app.$mount("#app");
