2021-12-14 18:36:19 +08:00
|
|
|
import Vue from 'vue';
|
2022-04-27 18:18:57 +08:00
|
|
|
import App from './examples/App.vue';
|
2021-12-14 18:36:19 +08:00
|
|
|
import ui from 'element-ui';
|
2022-04-27 18:18:57 +08:00
|
|
|
import createRoute from './examples/router/router';
|
|
|
|
|
import axios from './examples/router/axios';
|
|
|
|
|
import utils from './examples/utils';
|
2021-12-14 18:36:19 +08:00
|
|
|
import vcUI from 'dvcp-ui';
|
|
|
|
|
import 'dvcp-ui/lib/styles/common.scss';
|
|
|
|
|
import 'dvcp-ui/lib/dvcp-ui.css';
|
2022-04-27 18:18:57 +08:00
|
|
|
import store from './examples/store';
|
2021-12-14 18:36:19 +08:00
|
|
|
|
|
|
|
|
Vue.use(ui);
|
|
|
|
|
Vue.use(vcUI);
|
|
|
|
|
//富文本编辑器配置
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
Vue.prototype.$axios = axios;
|
|
|
|
|
Vue.prototype.formatContent = (val) => val.replace(/(\r\n)|(\n)/g, '<br>');
|
|
|
|
|
Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e]));
|
2022-04-27 18:18:57 +08:00
|
|
|
createRoute.then(router => {
|
|
|
|
|
new Vue({
|
|
|
|
|
router,
|
|
|
|
|
store,
|
|
|
|
|
render: (h) => h(App)
|
|
|
|
|
}).$mount('#app');
|
|
|
|
|
})
|