- 博客(11)
- 收藏
- 关注

原创 js分享国外app,facebook,whatsapp,facebookMessenger....
项目是用react写的,但是分享与用什么技术无关。记录一次分享 switch (res) { case "facebook": url = `https://www.facebook.com/dialog/feed?redirect_uri=https://www.facebook.com&app_id=703717717106866&link=${encodeURIComponent(shareUrl)}`; break
2020-12-08 14:00:27
3035
6
原创 vuex解决刷新页面会清空
更改store文件下index文件state的定义state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')): { userName: '', lists:[], accountManagment:[] },以及在App.vue中添加mounted() { window.addEventListener('unload', this.sav
2020-08-17 17:11:11
435
原创 vue路由报错 Avoided redundant navigation to current location:
在VUE中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复,对项目无影响,个人看着不舒服很好解决,在你引入VueRouter的时候再加上一句话:const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this,
2020-07-30 11:07:09
400
原创 elementui根据不同条件校验
<el-form-item :label="$t('application.staff.explain')" prop="agentAnswer.detailCriminalRecord" :rules="this.ruleForm.agentAnswer.hasPHCriminalRecord == '1'? [{ required: true, message: '请输入要删除的![在这..
2020-07-14 15:54:02
1970
原创 报错Props with type Object/Array must use a factory function to return the default value.
props类型为Object/Array ,就要这样写props: { dataInfo: { type: Object, default: () => ({}) // default: {} // default: function() { // return []; // } } },试了好几种这个实习了
2020-07-08 21:01:12
1128
原创 computed和watch的区别
computed能监听v-moderl的值,只要值发生变化 他就会重新去计算,并且必须要有返回值,用return来返回 <div id="app"> <input type="text" v-model="firstname">+ <input type="text" v-model="lasttname">= <input type="text" v-model="fullname"> </div>
2020-05-12 14:55:20
184
转载 element-ui 日历组件calendar 自定义使用
<el-calendar v-model="value" id="calendar"> <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法--> <template slot="dateCell" slot-scope="{date, data}"> &l...
2019-12-02 19:11:27
13043
14
原创 el-calendar自定义使用
这几天要做好几个日历,我是用elementui来写的,想着直接拿框架的el-calendar使用就行,可是当我点击某一天获取这一天的日期的时候我发现加什么事件都不触发,在网上搜了好久才找到一个方法,浪费了我2个小时的时间。切记切记切记!<el-calendar v-model="value"> <template ...
2019-11-29 15:23:07
6320
1
原创 el-dialog有一层蒙层的解决办法
点开按钮又一个蒙层再次点击才消失,如图在标签上加一句:modal-append-to-body='false’就完事了
2019-11-12 09:59:44
1502
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人