logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Avoid adding reactive properties to a Vue instance or its root $data at runtime

[Vue warn]: Avoid adding reactive properties to a Vue instance or its root dataatruntime−declareitupfrontinthedataoption.![在这里插入图片描述](https://img−blog.csdnimg.cn/0657961c352a4a77b5cf032ad72f4f3e.png)报

文章图片
安装cnpm报错 request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired

http://npm.taobao.org和 http://registry.npm.taobao.org 将在 2022.06.30 号正式下线和停止 DNS 解析。原淘宝npm域名已经停止解析,需要切换至新域名 npmmirror.com。

文章图片
#前端#npm#node.js
解决 git cherry-pick could not apply

当 git cherry-pick c096b573 出现以下报错时,是 api.js 文件代码有冲突,解决一下代码冲突然后 commit 就好了Auto-merging config/api.jsCONFLICT (content): Merge conflict in config/api.jserror: could not apply c096b57... 提交文字备注hint: afte

#git
ES6新特性

1.增加块作用域2.增加 let const3.解构赋值4.函数参数扩展 (函数参数可以使用默认值、不定参数以及拓展参数)5.增加 class 类的支持6.增加箭头函数7.增加模块和模块加载(ES6 中开始支持原生模块化啦)8.math, number, string, array, object 增加新的 API...

#javascript
git将多次commit提交合并为一次

使用 git rebase -i 命令就可以将从最后一次提交往前的多次提交合并为一次。先 git log 查看提交记录执行git rebase -i HEAD~3或者git rebase -i a91e660da91e660dd 为 9b45a0d4 前一次的提交记录HEAD~3是指当前版本的上 3个版本git rebase -i HEAD~3pick or squash之后会弹出现目的编辑窗口:

#git
解决 git cherry-pick could not apply

当 git cherry-pick c096b573 出现以下报错时,是 api.js 文件代码有冲突,解决一下代码冲突然后 commit 就好了Auto-merging config/api.jsCONFLICT (content): Merge conflict in config/api.jserror: could not apply c096b57... 提交文字备注hint: afte

#git
vue报错TypeError: Cannot read property ‘Name‘ of undefined的解决方案

一、问题描述使用{{}}双花括号在html页面进行数据绑定时,从一个对象中获取,超过两个.就报错,如下代码报错提示为“TypeError: Cannot read property ‘Name’ of undefined”。var editsmall_v = new Vue({el: '#editsmall',data: {editSmall : {}},methods: {}});<div

#vue.js
axios如何在请求头添加参数

直接看代码import axios from "axios"axios.get(' https://domain-name/api/qualification/query', {params: {mobile: 15712345678,},headers: {'activityId': 11}}).then( (res) => {console.log('成功', res)}).catch(

#http
Avoid adding reactive properties to a Vue instance or its root $data at runtime

[Vue warn]: Avoid adding reactive properties to a Vue instance or its root dataatruntime−declareitupfrontinthedataoption.![在这里插入图片描述](https://img−blog.csdnimg.cn/0657961c352a4a77b5cf032ad72f4f3e.png)报

暂无文章信息