- 博客(8)
- 收藏
- 关注
原创 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘insertBefore‘)解决
原因:fromData里面的数据是接口返回的,页面按钮已经加载完毕,接口没有返回数据时候,不会报错,但是一旦返回数据,链式找不到父节点控制台就会报错。解决方式: 不能用v-if,用v-show代替,判断表达式前确保上一层有数据。
2024-05-31 14:30:20
289
原创 Leaflet地图框架使用,L.Popup,read properties of null (reading ‘_latLngToNewLayerPoint‘)报错问题
L.Popup,read properties of null (reading ‘_latLngToNewLayerPoint‘)
2024-05-31 14:21:47
272
原创 husky - pre-commit hook exited with code 1 (error)
或者直接在项目根目录下执行npm uninstall husky --save也可以,再次提交,自动化测试功能就屏蔽掉。3、进入项目的.git文件夹(文件夹默认隐藏,可先设置显示或者命令ls查找),再进入hooks文件夹,删除pre-commit文件,重新git commit -m 'xxx' git push即可。1、git comit - m "XXXXXX"--no-verify 是 Git 命令的一个选项,用于在提交代码时绕过 Git 钩子(hook)的校验。一、解决方式(绕过规范)
2024-01-30 16:49:24
1535
1
原创 Uncaught (in promise) DOMException: play() failed because the user didn‘t interact
属性指向一个音频文件,使它播放音频。为了给用户比较好的体验,这个音频文件最好是一个空的音频文件,即没有音频内容的文件,时长也尽可能短一点,比如。解决因为浏览器限制不能自动播放音频视频的缺陷,最主要还是因为需求不然谁闲着饶这么大的弯子去这么搞,废话不多说了。属性,使它静音,这样视频就能自动播放了,但是没有声音。然后待用户在网页上有了任意触发后,再将。播放了这个音频文件后,就能触发网页播放音频的权限,这样再来播放视频或音频,就没有问题了。*注意该方案只适用于本地调试。
2023-07-04 09:29:24
4360
3
原创 [antdv: Descriptions] Sum of column `span` in a line not match `column` of Descriptions.
a-descriptions 在标签添加属性 :column="4" :span 不能超过列数。关于 ant 组件库Descriptions 控制台报错记录一下。
2023-06-30 17:47:28
1229
原创 找不到文件“c:/Users/Administrator/Desktop/vue_dom2/node_modules/postcss-discard-overridden/types/index.d.
找不到文件“c:/Users/Administrator/Desktop/vue_dom2/node_modules/postcss-discard-overridden/types/index.d.ts”。程序包含该文件是因为:为编译指定的根文件t
2022-06-21 16:06:14
1639
1
原创 【vue独享路由守卫history模式】在部署服务器时出现空白问题
nginx:location / {root //www/wwwroot/**.com/;try_files $uri $uri/ /index.html;index index.html index.htm;}
2022-06-13 12:09:11
227
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人