
BUG
记录一下自己能写多少个bug
十一吖i
小废物的日常
展开
-
[TypeError] {message: “Cannot read property ‘‘ of undefined“}
uniapp 使用报错。原创 2024-09-06 16:28:11 · 487 阅读 · 0 评论 -
vue2使用change事件监听不了回车事件的问题
在 vue2 项目中使用 el-input 的 change 监听,数据不发生变化时,回车事件和失去焦点不生效 输入框会一直显示。需求是数据不发生变化时 回车和失去焦点 输入框就不显示了。在 el-input 上绑定回车事件。只有数据发生变化时才生效。原创 2024-04-25 09:43:17 · 473 阅读 · 0 评论 -
95% emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported E
【代码】95% emitting CompressionPlugin ERROR Error: error:0308010C:digital envelope routines::unsupported E。原创 2024-02-27 16:12:58 · 823 阅读 · 0 评论 -
✖ 1 problem (1 error, 0 warnings) 1 error and 0 warnings potentially fixable with the `--fix` opt
eslint 格式检查。关闭eslint检查。原创 2023-11-29 16:33:15 · 1212 阅读 · 0 评论 -
npm install vue3-print-nb --legacy-peer-deps npm ERR!
npm ERR!npm ERR!npm ERR!npm ERR!A complete log of this run can be found in: C:\Users\admin\AppData\Local\npm-cache_logs\2024-01-22T04_35_33_436Z-debug-0.log解决方法:即安装成功。原创 2024-01-22 13:22:44 · 735 阅读 · 0 评论 -
Error: error:0308010C:digital envelope routines::unsupported
【代码】Error: error:0308010C:digital envelope routines::unsupported。原创 2023-12-19 10:48:58 · 452 阅读 · 0 评论 -
Error: error:0308010C:digital envelope routines::unsupported
Error: error:0308010C:digital envelope routines::unsupported原创 2022-12-07 21:23:28 · 258 阅读 · 1 评论 -
Uncaught (in promise) Error
Uncaught (in promise) Error: Redirected when going from “/Layout/Home” to “/Login” via a navigation guard.暂时不知道是什么原因原创 2022-07-11 00:35:48 · 504 阅读 · 0 评论 -
warning: LF will be replaced by CRLF in src/App.vue.
warning: LF will be replaced by CRLF in src/App.vue.在使用 git 时出现 warningwarning: LF will be replaced by CRLF in src/App.vue.解决方案:不做任何操作,直接 git add . 。想了解更多请查看:关于git提示原创 2021-12-01 13:21:41 · 1323 阅读 · 0 评论 -
不能解析模块
不能解析模块自定义的模块和三方模块都有可能出现错误拼写错误路径错误原创 2021-11-25 12:00:00 · 221 阅读 · 0 评论 -
模块导入导出问题
模块导入导出问题按需导入导出 默认导入导出导入导出必须是对应的模块导入导出方式没对上 按需 默认导入的模块 模块名写错了原创 2021-11-24 22:56:03 · 262 阅读 · 0 评论 -
[Vue warn]: Invalid prop: type check failed for prop “content“.
[Vue warn]: Invalid prop: type check failed for prop “content”. Expected Number, String, got Function在使用vant组件调用Badge 徽标时 ,设置 content 属性后,出现的错误查资料发现是忘记给 content设置 类型了!大家在使用时特别注意正确如下:<!-- 底部添加评论区域 --> <div class="icon-box">原创 2021-10-21 15:30:00 · 1592 阅读 · 0 评论 -
Already included file name
Already included file name ‘d:/Learn/11.Vue/Pprogram/geek_mobile/src/views/ArticleDetail/CommentList.vue’ differs from file name ‘d:/Learn/11.Vue/Pprogram/geek_mobile/src/views/ArticleDetail/CommentList.VUE’ only in casing.The file is in the program becau原创 2021-10-20 20:30:00 · 853 阅读 · 0 评论 -
webpack打包vue文件
webpack打包vue文件是因为vue版本不一致卸载 uninstall vue-loader重新安装 vue-loader原创 2021-10-17 20:13:02 · 92 阅读 · 0 评论 -
[Vue warn]: Error in created hook (Promise/async): “Error: Request failed with status code 404“
[Vue warn]: Error in created hook (Promise/async): "Error: Request failed with status code 404"路径错误——请求接口的路径前加了空格原创 2021-10-14 12:00:00 · 6697 阅读 · 1 评论 -
[Vue warn]:“TypeError: Cannot read properties of undefined (reading ‘images‘)“
[Vue warn]: Error in v-on handler: “TypeError: Cannot read properties of undefined (reading ‘images’)”无法读取未定义的属性(读取’images’)this.form.cover.images.splice(index, 1)原创 2021-10-13 20:00:00 · 4521 阅读 · 0 评论 -
[Vue warn]: Error in render: “TypeError: Cannot read properties of undefined (reading ‘every‘)“
[Vue warn]: Error in render: "TypeError: Cannot read properties of undefined (reading ‘every’)"原创 2021-10-12 18:00:00 · 4327 阅读 · 0 评论 -
[Vue warn]: Error in callback for watcher “fileList“
[Vue warn]: Error in callback for watcher “fileList”: "TypeError: Cannot create property ‘uid’ on string ’element组件里file-list里的数据类型和我所使用的类型不一致正确代码:先将图片转换成file-list需要的格式 // 将图片格式转换成file-list需要的格式 computed: { imgFileList () { return thi原创 2021-10-12 20:15:00 · 2036 阅读 · 0 评论 -
路径不匹配
出现message:'用户未认证'这个嘛 其实就是把路径给写错了 前后端代码的不匹配造成的原创 2021-10-11 18:30:00 · 217 阅读 · 0 评论 -
报错:跨域问题
看见跨域是不是一脸懵逼 我也没反应过来看着这段代码 你有么有发现什么呢 嘿嘿 请求方式写错咯 DELETE 都是粗心惹的正确代码// 删除文章export const delAtricleAPI = ({ artID }) => { return request({ url: `1_0/mp/articles/${artID}`, method: 'DELETE' })}...原创 2021-10-10 19:00:00 · 124 阅读 · 0 评论 -
[Vue warn]
[Vue warn]: Property or method “to” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.emmm 绝对想不到是因为一个标点符号,这是最开始写原创 2021-10-09 20:00:00 · 109 阅读 · 0 评论 -
Failed to load resource: the server responded with a status of 400 (Bad Request)
Failed to load resource: the server responded with a status of 400 (Bad Request)报错代码为400的错误的原因:前后台数据格式不相同造成,检查前台的数据格式,至于到底怎么出现错误的,就得看自己怎么传的数据,后台要接收的数据名称是什么,自己传的数据又是什么?我的数据不相同造成...原创 2021-10-08 16:45:00 · 11401 阅读 · 0 评论 -
Failed to compile.
Failed to compile.这是因为eslint的原因,需要找到.eslintrc.js在其中添加规则'camelcase':'off'如下图所示:原创 2021-10-07 19:47:06 · 9302 阅读 · 0 评论 -
Error:Request failed with status code 401
Error:Request failed with status code 401错误示例:// 获取个人信息export const getUserInfoAPI = () => { return request({ url: '/v1_0/user/profile', method: 'GET', Headers: { Authorization: `Bearer ${getToken()}` } })}正确做法// 获取个人信原创 2021-10-07 20:00:00 · 8477 阅读 · 0 评论 -
[Vue warn]: Error in v-on handler: “TypeError: Object(...) is not a function“
记录在Vue中出现[Vue warn]: Error in v-on handler: "TypeError: Object(...) is not a function"引用外部文件时候,只是部分引用,所以原本是解构方式引用的,我忘记加{ }了// 错误写法import loginAPI from '@/api'// 正确写法import { loginAPI } from '@/api'...原创 2021-10-06 17:19:32 · 10998 阅读 · 0 评论 -
点击事件传参
点击事件传参1、 购物车案例目标完成商品浏览和删除功能, 当无数据给用户提示需求:需求1: 根据给的初始数据, 把购物车页面铺设出来需求2: 点击对应删除按钮, 删除对应数据需求3: 当数据没有了, 显示一条提示消息完成代码:<template> <div id="app"> <table class="tb"> <tr > <th>编号</th> <原创 2021-09-24 18:52:49 · 1373 阅读 · 0 评论 -
undefined相关
undefined相关1、访问声明,但是没有初始化的变量var aaa console.log(aaa) // undefined 2、访问不存在的属性 var aaa = {} console.log(aaa.c) // undefined3、访问函数的参数没有被显式的传递值 (function (b){ console.log(b) // undefined })(); 4、访问任何被设置为 undefined 值的变量 var aaa = unde原创 2021-09-18 20:33:13 · 81 阅读 · 0 评论 -
实例化时间
实例化时间之前的文章中:中间件的应用-访问日志在获取时间时卡了好久,一边学习一边忘,不知道你们还记不记得获取时间,反正我是卡了,所以就顺便整理一下。我在中间件的应用-访问日志中使用的是: console.log('现在的时间是',new Date())时间对象: 用来表示时间的对象作用:可以得到当前系统时间toLocaleString():以本地时间日期格式显示时间对象方法获取年份 getFullYear()获取月份 getMonth() 月份 0-11原创 2021-09-17 16:01:18 · 260 阅读 · 1 评论 -
数据库添加字段
数据库添加字段在使用数据库添加字段的时候要避免使用关键字在SQL数据库编辑进行增删改查的时候,发现index这个字段的内容无法进行增删改查,希望大家在使用的时候就不要起那些关键字,嘿嘿,继续加油!...原创 2021-09-16 15:15:07 · 1038 阅读 · 0 评论 -
一天一bug
不知道是什么bug原创 2021-09-15 12:20:11 · 72 阅读 · 0 评论 -
将txt文本数据转换为json对象
bug原创 2021-09-14 14:37:51 · 1965 阅读 · 0 评论