vue插件引入

87 篇文章 2 订阅
5 篇文章 0 订阅

依赖

npm install

css编译sass

npm install node-sass --save-dev
npm install sass-loader --save-dev

axios引入

npm install axios -S
// axios
Vue.prototype.$axios = axios;
import global from './components/apicom/apicom'
axios.defaults.withCredentials = true; //让ajax携带cookie
import axios from 'axios';
Vue.prototype.api = global.apicom // 绑定原型链的公共api

element-ui引入

npm i element-ui -S
// element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

mint-ui引入

npm i mint-ui -S
// mint-ui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

md5加密引入
md5加密(https://blog.csdn.net/skyblacktoday/article/details/80255348?tdsourcetag=s_pcqq_aiomsg)

npm install --save js-md5
import md5 from 'js-md5';

md5('holle')

animate安装
vue里用动画效果(https://daneden.github.io/animate.css/?tdsourcetag=s_pcqq_aiomsg)
文档解释(https://www.cnblogs.com/rlann/p/7192535.html?tdsourcetag=s_pcqq_aiomsg)

npm install animate.css --save

echarts 折线图引入

npm install echarts --save
// 引入echarts折线图
import echarts from 'echarts'

Vue.prototype.$echarts = echarts 

//引入高德地图

npm install vue-amap --save
import VueAMap from 'vue-amap';
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: '7379e88c421f576018174c8d99e9faf0',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geolocation', 'AMap.Geocoder'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值