文件
CTAI/CTAI_web/src/main.js
2020-02-17 14:33:04 +08:00

36 行
873 B
Python

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import axios from 'axios'
import Element from 'element-ui'
import echarts from "echarts";
Vue.prototype.$echarts = echarts;
import '../node_modules/element-ui/lib/theme-chalk/index.css'
import '../src/assets/style.css'
import './theme/index.css'
Vue.use(Element)
Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.prototype.$http = axios
const router = new VueRouter({
routes: [
{path: "/App", component: App, meta: {title: "肿瘤辅助诊断系统"},},
],
mode: "history"
})
// // 全局注册组件
Vue.component("App", App);
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
render: h => h(App)
})