| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // 该文件是整个项目的入口文件
- // 引入vue
- import Vue from "vue";
- // 引入app组件,它是所有组件的父组件
- import App from "./App.vue";
- import Element from "element-ui";
- import "element-ui/lib/theme-chalk/index.css";
- import router from "./router/index.js";
- import echarts from "echarts";
- // 引入Highlight高亮
- import VueHighlightJS from "vue-highlightjs";
- import "highlight.js/styles/atom-one-dark.css";
- //baidu
- import BaiduMap from "vue-baidu-map";
- Vue.use(BaiduMap, {
- ak: 'drz9Gli0oXf0MpoAkpOl4mZoisacLUX9'
- });
- Vue.use(VueHighlightJS);
- //引入ACE代码编辑器
- import ace from "ace-builds";
- Vue.use(ace);
- // <!-- 引入样式 -->
- // <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
- // <!-- 引入组件库 -->
- // <script src="https://unpkg.com/element-ui/lib/index.js"></script>
- Vue.config.productionTip = false;
- // 使用echarts
- Vue.prototype.$echarts = echarts;
- Vue.use(Element);
- // new Vue({
- // render(h) {
- // return h("h1", "Hello");
- // },
- // // render: (h) => h(App),
- // router,
- // }).$mount("#app");
- new Vue({
- el:"#app",
- render: (h) => h(App),
- router,
- }).$mount("#app");
|