cool-admin-vue/src/main.js

29 lines
484 B
JavaScript
Raw Normal View History

2021-02-28 01:55:04 +08:00
import Vue from "vue";
import App from "./App.vue";
import { bootstrap } from "cl-admin";
2021-02-28 01:55:04 +08:00
import "./element";
// 路由
import router from "@/router";
// 缓存
import store from "@/store";
// 阻止显示生产模式的消息
Vue.config.productionTip = false;
// 配置
bootstrap()
.then(() => {
store.dispatch("appLoad");
new Vue({
router,
store,
2021-03-09 18:10:43 +08:00
render: h => h(App)
2021-02-28 01:55:04 +08:00
}).$mount("#app");
})
2021-03-09 18:10:43 +08:00
.catch(err => {
2021-02-28 01:55:04 +08:00
console.error("COOL-ADMIN 启动失败", err);
});