
vue报错
♪和曲而歌♪
从入坑到再次入坑!
展开
-
cannot overwrite multiple values with a single value Use a regexp, --add or --replace-all to change
问题描述: 问题:git config --global user.email 'name@sinosoft.com.cn’报错 报错:warning: user.email has multiple values error: cannot overwrite multiple values with a single value Use a regexp, --add or --replace-all to change user.email. 解决方案: 提示:命令窗口执行一下代码: "输入你的用原创 2021-02-04 14:28:22 · 1968 阅读 · 0 评论 -
npm ERR! Unexpected end of JSON input while parsing near ‘...0.2.tgz“}
问题描述: 提示:npm install 报错 npm ERR! Unexpected end of JSON input while parsing near '…0.2.tgz"} 解决方案: 方案一: npm cache clean --force 方案二: npm config set registry http://registry.npmjs.org/ 方案三: ①第一步:npm cache clean --force ②第二步:切换为淘宝镜像: npm config set re原创 2021-02-04 14:20:56 · 197 阅读 · 0 评论 -
Vue报错 Duplicate keys detected: ‘1‘. This may cause an update error. vue
Vue报错 Duplicate keys detected: ‘1’. This may cause an update error. vue 原因分析: 1. for循环中,key值不唯一。 <el-option v-for="item in options" :key="item " :label="selectType === 'insuranceCode' ? item.code : item.name " :value="item.code" > <spa原创 2021-02-04 14:06:34 · 5843 阅读 · 0 评论 -
vue 报错: Duplicate keys detected:‘/security’. This may cause an update error.
vue 项目控制台报错:Duplicate keys detected: ‘/security’. This may cause an update error. vue 项目可以正常启动,也可以正常使用,但是对于一长串红色的报错,还是得解决的。 原因:v-for循环里,key值可能重复了,所以会报这个错。 解决: vue for循环的key值必须是唯一的,如果重复就会报错。把key值改为index(索引),就可以 避免这个情况。 ...原创 2020-06-26 12:21:57 · 393 阅读 · 0 评论