import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "@/assets/css/index.scss";
import "@/assets/iconfont/iconfont.css";
import "@/assets/iconfont/iconfont.js";
import VueApproval from "@/index";
import VueRouter from "vue-router";
import apiService from "@/services/api.service";
import AmUI from "@/services/am-ui.service";
import Storage from "vue-ls";
import { defaultCacheOptions } from "@/constants/config/storage.config";
Vue.config.productionTip = false;
apiService.init();
/** 自定义toast(message), alert, confirm **/
Vue.use(AmUI);
/**审批页面*/
Vue.use(VueApproval, {
  processServiceUrl: "/ebtrust-ebtc",
  apiPrefix: "/api/v1",
  fileApi: "http://10.69.92.83:8640/ebtrust-upms"
});

Vue.use(VueRouter);

/*缓存插件*/
Vue.use(Storage, defaultCacheOptions);
new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
