- 博客(35)
- 资源 (1)
- 收藏
- 关注
原创 Property ‘code‘ does not exist on type ‘AxiosResponse<any, any>‘
Property 'code' does not exist on type 'AxiosResponse';修改element-plus默认英文为中文
2022-10-19 20:25:06
4645
2
原创 SpringBoot打包报错
SpringBoot打包报错,Using 'UTF-8' encoding to copy filtered resources.Using 'UTF-8' encoding to copy filtered properties files.
2022-05-17 10:41:41
1852
原创 Invalid prop: type check failed for prop “model“. Expected Object, got Array
Invalid prop: type check failed for prop "model". Expected Object, got Array
2022-03-12 18:46:40
1276
原创 One of the configured repositories failed (Unknown),and yum doesn‘t have enough cache
xshell安装报错,One of the configured repositories failed (Unknown),and yum doesn't have enough cache
2022-02-26 11:17:52
1640
原创 配置开发环境.env.development 和生产环境.env.production,在前端解决跨域问题
在前端解决跨域问题,配置开发环境 .env.development 和生产环境 .env.production,
2022-01-21 17:00:54
1991
原创 组件内监听vuex数据的改变
data(){ return{ maxHeight:null }},// 组件内:computed: { result1() { return this.$store.state.maxHeight; }, },watch: { result1: { handler(nval, oval) { //nval新的值,oval旧的值 this.maxHeight = nval - 150; .
2022-01-21 15:10:41
365
原创 element-ui 表单验证(解决了表单验证不生效的问题)vue有关elementui form表单rules验证问题,有值却仍然显示不通过
一般有值,但是表单认证不通过,是因为设定的rules参数和model绑定的参数不一致,或者是地址部一直,这些需要注意的点查一下都有,就不赘述了。下面说说另外一中用法,:prop='formData.'+index+'.value'遍历表单的情况下 表单检验对于数组数据 如:modelData:{ id:'123', name:'用户数据', formData:[ //关键数据 { title:"姓名", ..
2022-01-18 09:31:24
5037
原创 vue.js的minxins混入+封装
混入 (mixins) 是一种分发Vue组件中可复用功能的非常灵活的方式。混入对象可以包含任意组件选项。当组件使用混入对象时,所有混入对象的选项将被混入该组件本身的选项。数据对象在内部会进行浅合并 (一层属性深度),在和组件的数据发生冲突时以【当前组件】数据优先。1、常规:data冲突 //1.定义一个mixins对象 var countConsole = { data() { return { message: 'hello', foo:..
2022-01-12 10:10:20
3697
原创 NavigationDuplicated: Avoided redundant navigation to current location: “/home“.
问题:重复点击一个路由跳转的时候出错,重复路由跳转,都是影响代码的运行原因:重复路由跳转,比如说当前路由是【首页】页面【/home】,但是点击按钮进行this.$router.push('/home')操作,要跳转的还是【首页】页面【/home】。在路由配置文件中修改相关代码:如:router文件夹下的index.js//获取原型对象上的push函数const originalPush = VueRouter.prototype.push//修改原型对象中的push方法VueRou.
2021-12-16 09:21:11
1639
原创 v-for与v-if与template的结合使用
同一标签上,不能同时使用v-for和v-if,怎么办?将 v-for 写在 template上,key和 v-if 写在循环遍历的元素上(template上不能使用key, 但 v-for 必须要指定key,所以循环遍历的元素上,需要加上key )<ul> <template v-for="(item,index) in ['国庆节', '春节', '元旦']"> <li v-if="item !== '春节'" :key="index"&...
2021-11-18 12:01:55
2019
原创 数组、对象的拼接、删除、查找等相关方法
一、截取:1、slice() 方法:可从已有的数组中返回选定的元素【截取数组中指定位置的元素】。语法: arrayObject.slice(start,end)// eg:['a','b','c','d','e','f','g'].slice(3,4)// 结果:["d"]['a','b','c','d','e','f','g'].slice(3,5)// 结果:["d", "e"]参数 描述 start 必需。规定从何处开始选取。如果是负数,那
2021-11-02 13:08:36
561
原创 git部署
一、下载安装:网站:Git - Downloads二、配置:查看配置:git config -l查看系统配置:git config --system --list查看当前用户(global)配置:git config --global --list设置名称和邮箱:git config --global user.name '名称'git config --global user.email 邮箱三、部署仓库:1、创建git生成 .git 文件git init
2021-09-28 18:15:54
232
原创 解决低版本的vue-cli安装问题(亲测管用)
解决安装低版本的vue-cli问题作者当下最更新vue-cli版本为4.5.13,以下载Vue CLI v3.2.1为例清楚系统全局下的vue-cli npm uninstall @vue/cli -g npm cache clean --force到C:\Users\ASUS\AppData\Roaming 删除npm-cache文件安装vue-cli v3.2.1npm install -g @vue/cli@3.2.1 --forcevue --ver.
2021-05-19 21:39:14
1178
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人