- 博客(22)
- 收藏
- 关注
原创 Centos7 svn nginx
1.CentOS 7配置静态Ip地址如果使用vm虚拟机,网络适配器需要选中桥接模式vi /etc/sysconfig/network-scripts/ifcfg-* 打开网卡配置文件BOOTPROTO=static // 启用静态IpIPADDR=192.168.1.105 // 配置静态Ip地址NETMASK=255.255.255.0 // 配置子网掩码GATEWAY=192.168.1.1 // 配置网关DNS2=114.114.114.114 // 配置DNSservi
2022-05-23 09:10:47
744
3
原创 md5,sm2,aes加密
先下载sm-crypto包和CryptoJS 包import CryptoJS from 'crypto-js'const sm2 = require('sm-crypto').sm2const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1// 公钥,找后端要const publicKey = ''// AES-128-CBC偏移量const CBCIV = ''export const encrypt = (data) => { le
2022-05-19 11:24:54
1599
原创 解决el-input登录账号密码自动填充问题
其他的思路应该差不多,请自行修改// :readonly='readonly' 先让input改成只读// @focus='handlerIptClick' 聚焦触发函数<el-form-item prop="username"> <el-input @focus='handlerIptClick' :readonly='readonly' autocomplete='off'></el-input></el-form-item>&l..
2022-05-19 11:10:16
565
原创 Element和iview Upload验证
element<el-form-item label="上传附件" prop="fileList"> <el-upload :on-success="upSuccess" // 上传成功触发 :file-list="inputForm.fileList" // 文件列表> <el-button size="small" type="primary">点击上传</el-button> </el-upload>.
2022-04-27 18:30:27
559
原创 网页变灰css
body { -webkit-filter: grayscale(100%); /* webkit */ -moz-filter: grayscale(100%); /*firefox*/ -ms-filter: grayscale(100%); /*ie9*/ -o-filter: grayscale(100%); /*opera*/ filter: grayscale(100%); filter:progid:DXImageTransform.Microsoft.BasicImage(gra
2021-12-13 09:42:13
544
原创 动态粒子效果
npm install vue-particles --save-dev// main.js引入import VueParticles from 'vue-particles' Vue.use(VueParticles)// template模板<vue-particles color="#fff" :particleOpacity="0.7" :particlesNumber="100" shapeType="circle"
2021-12-02 09:23:55
255
原创 vue2-org-tree使用拖拽,预览,下载,自定义新增,编辑,删除
话不多说,直接上代码下载图片的插件:html2canvas 使用思维图插件:vue2-org-treeimport html2canvas from 'html2canvas' // 页面转换图片下载插件 写在需要下载的页面// 以下内容在main.js引用import Vue2OrgTree from 'vue2-org-tree'import 'vue2-org-tree/dist/style.css'Vue.use(Vue2OrgTree)template的写法<v
2021-11-30 10:47:19
6554
5
原创 密码校验规则
密码校验规则// 是否包含一位数字 const regNumber = /(?=.*[\d])/ // 是否包含一位大写字母 const regLetter = /(?=.*[a-z])/ // 是否包含一位小写字母 const regLetters = /(?=.*[A-Z])/ // 是否包含一位特殊字符 const regCharacter = /(?=.*[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\
2021-11-23 15:18:09
766
原创 npm install时node-gyp报错问题
先贴报错内容主要原因: node-sass下载版本出错以及sass-loader解决方式:删除掉node_modules, package.json里面的node-sass以及sass-loader一起删除,然后执行npm install之后尝试npm install sass-loader@7.3.1 --save-devcnpm install node-sass@4.13.1 --save如果安装完成,执行npm run不行就换版本...
2021-08-18 12:02:32
2723
原创 node node-sass sass-loader版本对应问题
项目里面大家都会遇到node 以及node-sass版本不对应导致报错问题一般可以直接指定node-sass版本号下载如若不对需要安装nvm切换node版本1.安装 nvm-window https://github.com/coreybutler/nvm-windows,win10默认添加系统环境和用户环境,若命令行不能使用nvm,需自行添加环境使用镜像,当然需要重启一下你的控制台2.在 nvm 的安装目录下找到settings.txt文件node_mirror: https://npm.tao
2021-08-11 10:34:37
1810
原创 py文件打包成exe文件
py文件打包成exe文件1.安装pip3 install pyinstaller2.切换到打包文件目录下后 pyinstaller -F -w -i xxx.ico setup.py-w 为不带控制台-i xxx.ico 设置打包后程序的图标** 报错没有pip3,需要配置环境变量
2021-08-05 10:17:33
103
原创 验证码多次验证失败
问题:验证码多次验证失败原因: Math.random()创建随机数时会导致重复随机数,浏览器默认缓存,不走后台解决方式:创建一个不重复的数组,每次刷新或者点击往后取值data() { return { arrimg: [], time: 0, }}refreshImage () { let num = this.time++ this.codeImg = '/randCodeImage?' + this.arrimg[num] this.form
2021-07-27 10:24:24
839
转载 Google浏览器记住密码之后,自动填充后input的背景色和color默认样式去除
input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: #ededed !important; -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; background-color:transparent; background-im
2021-07-27 10:13:22
336
转载 vue项目打包上线chunk-vendors.js文件过大导致页面加载缓慢解决方案
在vue.config.js中添加const path = require('path');const webpack = require('webpack')const CompressionWebpackPlugin = require('compression-webpack-plugin')const productionGzipExtensions = ['js', 'css']module.exports = { devServer: { disable
2021-07-27 10:10:19
1368
项目自动部署(centos7+js+ssh2)
2023-01-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人