- 博客(10)
- 收藏
- 关注
原创 Already included file name
Already included file name ‘c:/Users/Administrator/Desktop/test/src/components/detailList.vue’ differs from file name ‘c:/Users/Administrator/Desktop/test/src/components/detaillist.vue’ only in casing.The file is in the program because:Imported via ‘…/c
2021-06-12 16:18:42
16612
15
原创 当merge时出现error: The following untracked working tree files would be overwritten by merge
执行git clean -d -fx作用是:删除没有git add 的文件本地的修改都会没有
2021-06-11 21:40:29
263
原创 Vue CLI3
Vue CLI3vue-cli3与vue-cli2的区别vue-cli3是基于webpack4打造的,vue-cli2还是webpack3vue-cli3的设计的原则是“0配置”,移除的配置文件根目录下的,build和config等目录vue-cli3提供了vue ui命令,提供可视化设置,更加人性化vue-cli3移除了文件夹,新曾了pulic文件夹,本且index.html移动到public中vue-cli3的使用初始化项目vue create my-projectPlea
2021-06-07 18:00:54
181
2
原创 解决vue v-for报错[vue/valid-v-for] Custom elements in iteration require ‘v-bind:key‘ directives.eslint-p
报错:[vue/valid-v-for]Custom elements in iteration require ‘v-bind:key’ directives.eslint-plugin-vue原因:这是因为我安装的enlint插件,它会对代码的规范进行检查。我这里用到v-for,但它是需要key值的,当不根据它的代码规范来执行的时候,自然而然就报错了。解决办法:根据需求,不需要的话去掉eslint 中的代码规范检查即可。找到 文件->首选项->设置 里面输入:vetur valida
2021-06-02 23:47:41
1210
2
原创 Uncaught RangeError: Maximum call stack size exceeded
vue.runtime.esm.js?2b0e:4484 Uncaught RangeError: Maximum call stack size exceeded这是因为Swiper.vue中的name是Swiper,而Home.vue中引入的Swiper.vue的名字是HomeSwiper,所以会报错。只要把Swiper.vue中的name改HomeSwiper就好了。...
2021-05-29 21:53:57
223
原创 Do not use built-in or reserved HTML elements as compo
VUE - vue.runtime.esm.js?6e6d:619 [Vue warn]: Do not use built-in or reserved HTML elements as component i<script>export default { name:'header' // 不要使用内置或保留的HTML元素 , 改为Header或者置或保留的HTML元素之外的名称就好了}</script>...
2021-05-29 20:37:00
490
原创 warning: LF will be replaced by CRLF in package-lock.json.
warning: LF will be replaced by CRLF in package-lock.json.The file will have its original line endings in your working directory将core.autocrlf设为false即可解决这个问题,如果只工作于Windows平台或者Linux平台,那么没问题,但如果是存在跨平台的现象的话,还是需要考虑一下。但当 core autocrlf为true时,还有一个需要慎重的地方,当你上传一个
2021-05-28 18:41:29
442
原创 vue开发More than 1 blank line not allowed、http://eslint.org/docs/rules/semi Extra
vue开发More than 1 blank line not allowed、http://eslint.org/docs/rules/semi ExtraVUE如何关闭代码规范extra semicolon/VUE ✘ http://eslint.org/docs/rules/no-multiple-empty-lines More than 1 blank line not allowed src\components\tree\tree.vue:13:1 ^ ✘ ht
2021-05-18 14:40:55
176
原创 2021-05-17
git报错:fatal: No configured push destination.本地仓库代码(git push)上传git仓库报错:fatal: No configured push destination.Either specify the URL from the command-line or configure a remote repository using git remote add <name> <url>and then push u
2021-05-17 20:56:39
93
原创 git2.31.1(windows)安装步骤
1.进入git官网https://git-scm.com选择后下载2.安装3.查看是否安装成功首先win+R输入cmd进入控制台在控制台中输入git --version有版本号出来就安装成功了如果报错:“‘git’ 不是内部或外部命令,也不是可运行的程序 或批处理文件”就要找到git下的bin目录复制;之后,去高级系统设置中配置环境变量(选path——编辑——新建——粘贴进去——确定);重新打开控制台用git --version查看。...
2021-05-17 10:14:31
2422
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人