import Vue from "vue";
import App from "./App.vue";
import "@/assets/css/index.scss";
import VueEc from "@/index";
import VueRouter, { RouteConfig } from "vue-router";
Vue.config.productionTip = false;

Vue.use(VueEc, {
  sysId: "asset-management-core",
  baseApi: "/api",
  authApiBaseUrl: "/api"
});

Vue.use(VueRouter);
const routes: Array<RouteConfig> = [
  /*{
    path: "/",
    redirect: `/test-a`
  },
  {
    path: `/test-a`,
    component: () => import(/!* webpackChunkName: "TEST" *!/ "@/test/TestA.vue"),
    meta: { name: "测试A" }
  }*/
];
const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
