- 博客(11)
- 问答 (1)
- 收藏
- 关注
原创 简单记录vue2 px转rem
postcss-pxtorem”: “^5.1.1”,(不能v6)创建一个postcss.config.js放在根目录下。以及创建rem.js。在html文件中设置。
2024-08-13 10:53:41
241
原创 百度地图引用three.js时出现THREE is not defined错误
var threeLayer = new mapvgl.ThreeLayer(); view.addLayer(threeLayer); var projection = mapvgl.MercatorProjection; var point = projection.convertLL2MC(new BMapGL.Point(this.CenterPoint[0],this.CenterPoint[1])); var THREE = mapvgl.THR
2021-08-27 12:51:52
2028
原创 前端导出word图片
从后端获取文件流,转化成arraybuffer格式axios .post( '/api/vue/vueEquipmentDetails/devicePic', params, { responseType: 'arraybuffer' } ) .then(response => { this.im.
2021-06-24 10:52:08
536
原创 浏览器自动填充,透明颜色是白色,v-show之后或者密码隐藏显示又出现
input:-webkit-autofill { -webkit-text-fill-color: #ededed !important; -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; background-color:transparent; background-image: none; height: 0; bord..
2021-04-12 15:36:50
179
原创 微信开放平台 redirect_uri参数错误
将开放平台的回调域名修改为所开发的urlredirect_uri: 'http://localhost:10001'前面要加http:// 后面不要加别的
2021-04-08 12:27:05
302
原创 el-table 某一行增加calss 行hover
/***某一行增加calss(渐变)*/ <el-table:row-class-name="tableRowClassName"/> tableRowClassName({row, rowIndex}) { if (rowIndex%2 === 0) { return 'warning-row'; } }, .item ::v-deep.el-table .warning-row { background
2021-03-30 13:50:39
290
原创 vue watch监听this.$parent中父组件的属性
watch:{ //深度监听,可监听到对象、数组的变化 '$parent.$parent.deviceColumnChart'(newV, oldV) { this.inputValue=this.$parent.$parent.deviceColumnChart console.log(this.inputValue) this.getEchartRight() this.getEcha..
2021-02-03 10:23:13
1431
原创 百度地图在弹框中显示,中心坐标偏移问题
因地图一开始是隐藏状态, 上网查询据说是因为容器高度选择问题,导致div是0,所以第二次坐标中心点产生了偏移,所以目前采用延时的方式,先地图延时一会儿,容器的高度选取就正常了setTimeout(() => { this.DrawMap()//这是绘制地图方法 }, 10)...
2021-01-29 10:59:33
580
原创 使用router-link,在浏览器后退之后,在点击跳转,URL变化,但是页面不刷新问题,解决办法
在父组件中<router-view :key="$route.fullPath"></router-view>
2021-01-27 15:35:49
1307
空空如也
window.removeEventListener移除节流函数
2021-04-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人