自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 NavigationDuplicated {_name: ‘NavigationDuplicated‘, name: ‘NavigationDuplicated‘}报错

解决方法:在router文件下面的Index.js中加上下面代码。

2023-09-21 17:03:48 118

原创 element表格自定义表头,数据不更新

<el-table-column prop="loadAmount"> <template slot="header"> <span>{{ startTaskRule }} </span> //startTaskRule --一直是初始状态 </template> //slot="header"---改为#header <template #header> <span&gt

2021-08-19 16:02:37 467

原创 解决提交表单触发校验问题

//el-form表单 提交后触发了校验问题this.$refs.form.resetFields()

2021-08-10 15:46:58 322

原创 vue 路由跳转页面回到顶部

//设置scrollBehavior无效scrollBehavior: (to, from, savedPosition) => ({ x: 0, y: 0 })//包裹路由出口的盒子加ref <section class="sectionBox" ref="app"> <div class="bread-crumb" v-html="crumbsValue"></div> <router-view /> <

2021-08-05 17:19:39 384

原创 图片转为favicon.ico

网站地址:http://www.bitbug.net

2021-07-29 13:56:01 202

原创 el-form clearValidate()移除表单校验

<el-form :model="ruleForm" ref="ruleForm" ></el-form> this.$nextTick(() => { this.$refs["ruleForm"].clearValidate();});

2021-07-20 16:22:43 2980

原创 重置数据

```javascript Object.assign(this.$data, this.$options.data())//重置个别数据this.form = this.$options.data.call(this).form

2021-07-03 14:31:43 90

原创 css不继承父元素的宽高

加display: inline-block;或者display: block;

2021-06-25 19:18:01 4369

原创 box-shadow无效果

给盒子加上box-shadow不出现效果box-shadow: 0px 2px 9px 0px rgb(129 128 128 / 50%);添加z-index即可显示效果z-index: 898;

2021-06-21 20:59:24 2999

原创 复制

复制copeInput() { console.log(this.inpoutValue) const oInput = document.createElement('input') oInput.value = this.inpoutValue document.body.appendChild(oInput) oInput.select() // 选择对象; document.execCommand('Copy') // 执行浏

2021-04-14 16:52:11 111

原创 Vuex的核心概念

Vuex的核心概念1.state–存放全局共享的数据//定义stateconst store = new Vuex.Store({ state:{ count:0 }})组件中访问state中的数据方式一:this.$store.state.count方式二://1.从vuex中按需导入mapState函数 import {mapState} from 'vuex'//2.将当前组件需要的全局数据,映射为当前组件的computed计算属性 computed:{

2021-04-08 16:27:20 52

原创 禁止复制

##禁止复制 // 禁用右键document.oncontextmenu = new Function("event.returnValue=false");// 禁用选择document.onselectstart = new Function("event.returnValue=false");

2021-01-28 15:25:43 68

原创 el-popover弹出层显示

el-popover组件初次打开弹出层显示的位置问题加上-:popper-options="{ boundariesElement: ‘viewport’,removeOnDestroy: true, }" <el-popover placement="top" trigger="click" :popper-options="{ boundari

2021-01-27 16:19:31 2952

原创 js常用的数组的方法

js常用的数组的方法push/pop方法push:在数组尾部添加元素,会增加数组的长度pop:在数组尾部取出元素,会减少数组的长度push()是可以一次添多个元素的,例如arr.push(1,2,3)。var arr = [1, 2, 3, 4, 5];arr.push(6);console.log(arr); // [1, 2, 3, 4, 5, 6]let b = arr.pop();console.log(arr); // [1, 2, 3, 4, 5]console.log(

2021-01-26 21:06:27 62

原创 github 配置用户信息

github 配置用户信息1.查看信息git config – list2.配置用户信息git config --global user.name “xxxx”git config --global user.email “xxxx”

2021-01-26 20:30:15 322

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除