logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue 面包屑功能利用 vue-router meta属性简单实现

直接贴路由配置文件代码{path: ‘/Trafficaccidentddetail’,name: ‘Trafficaccidentddetail’,meta: {title: ‘交通事故详情’,breadcrumb:[{name:‘事件管理’,path:’/Trafficaccident’},{name:‘交通事故’,path:’/Trafficaccident’},...

vue实现下拉效果

手把手教你实现vue下拉菜单组件96 阿乾哥0.4 2019.02.26 00:20* 字数 2050 阅读 930评论 0喜欢 3这篇文章我们一起来实现一个vue的下拉菜单组件。像这种基本UI组件,网上已经有很多了,为什么要自己实现呢?其实并不是有意重复造轮子,而是想通过这个过程回顾一下vue组件开发的一些细节和注意事项。为什么选择下拉菜单组件?因为:麻雀虽小五脏俱全,这个小小的组件...

this.confirm与async await嵌套使用

async modification(row, operate_type) {const { acticvityId } = row;console.log(JSON.stringify(row));const parms = {operate_type,acticvityId,user_id: user.state.userInfo.user.id,};console.lo...

文章图片
this.confirm与async await嵌套使用

async modification(row, operate_type) {const { acticvityId } = row;console.log(JSON.stringify(row));const parms = {operate_type,acticvityId,user_id: user.state.userInfo.user.id,};console.lo...

文章图片
小程序appid不能更改以及不能使用公司appid的问题

需要公司账号登录之后 把你添加进微信开发者 获得权限

#小程序
解决axios无法添加content-type

分两种类型get请求:instance.interceptors.request.use(config => {// 解决get请求无法添加content-typeif (config.method === "get") {config.data = { unused: 0 }; // 这个是关键点,加入这行就可以了,解决get,请求添加不上Content-Type.

#vue.js#javascript
vue watch监听执行2次

原理:watch监听 原理是监听模式 下的新旧数据改变 他是2个条件语句 所以会执行2次解决方案:使用锁的概念data() {return {isGetRoute:false}},watch: {$route(route) {if (this.isGetRoute) {this.isGetRoute = !this.isGetRoute.

#vue.js#前端
到底了