市北互联平台前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.9 KiB

4 years ago
import Vue from "vue";
import Element from "element-ui";
4 years ago
4 years ago
import App from "@/App";
import i18n from "@/i18n";
import router from "@/router";
4 years ago
// import store1 from '@/store'
4 years ago
import "@/icons";
import "@/element-ui/theme/index.css";
import "@/assets/scss/aui.scss";
import http from "@/utils/request";
import renRadioGroup from "@/components/ren-radio-group";
import renSelect from "@/components/ren-select";
import renProcessMultiple from "@/components/ren-process-multiple";
import renProcessStart from "@/components/ren-process-start";
import renProcessRunning from "@/components/ren-process-running";
import renProcessDetail from "@/components/ren-process-detail";
import renDeptTree from "@/components/ren-dept-tree";
import renRegionTree from "@/components/ren-region-tree";
import cloneDeep from "lodash/cloneDeep";
4 years ago
// axios封装
4 years ago
import ajax from "@/js/ajax";
4 years ago
// service
4 years ago
import service from "@/js/service";
4 years ago
// vuex处理多个组件共享状态
4 years ago
import store from "@/js/store";
4 years ago
//系统工具
4 years ago
import util from "@js/util";
import Cookies from "js-cookie";
import getQueryPara from "dai-js/modules/getQueryPara";
// 兼容token传参登录
if (getQueryPara("token")) {
Cookies.set("token", getQueryPara("token"));
}
4 years ago
4 years ago
4 years ago
window.app = Object.assign(
{},
{
util,
ajax,
4 years ago
service,
4 years ago
}
4 years ago
);
4 years ago
4 years ago
Vue.config.productionTip = false;
4 years ago
4 years ago
Vue.use(renRadioGroup);
Vue.use(renSelect);
Vue.use(renDeptTree);
Vue.use(renRegionTree);
Vue.use(renProcessMultiple);
Vue.use(renProcessStart);
Vue.use(renProcessRunning);
Vue.use(renProcessDetail);
Vue.use(Element);
4 years ago
Vue.use(Element, {
4 years ago
size: "default",
i18n: (key, value) => i18n.t(key, value),
});
4 years ago
// 挂载全局
4 years ago
Vue.prototype.$http = http;
4 years ago
// Vue.prototype.$getDictLabel = getDictLabel
// 保存整站vuex本地储存初始状态
4 years ago
window.SITE_CONFIG["storeState"] = cloneDeep(store.state);
4 years ago
new Vue({
i18n,
router,
store,
4 years ago
render: (h) => h(App),
}).$mount("#app");