赞
踩
src/main.js
/**全局引入 */
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.use(Antd);
cnpm i element-ui -S
src/main.js
//载入Element 框架 饿了吗
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
Vue.use(ElementUI);
cnpm install iview -S
src/main.js
//载入美团框架
import iView from 'iview';
import 'iview/dist/styles/iview.css'
Vue.use(iView);
cnpm i vant -S
src/main.js
//载入有赞框架
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
cnpm i v-charts echarts -S
src/main.js
//载入v-charts
import VCharts from 'v-charts'
import App from './App.vue'
Vue.use(VCharts)
cnpm install axios -S
src/main.js
//载入v-charts
import Vue from 'vue';
import axios from 'axios';
/*全局安装,我们可以把axios挂载到vue实例的全局属性中*/
axios.defaults.baseURL = 'http://www.jx-tongan.com/vueapi/';
Vue.prototype.$axios = axios;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。