表格拖拽Elementui+sortablejs

import Sortable from 'sortablejs'; columnDrop() { let _this = this const wrapperTr = document.querySelector('.draggable .el-table__header-wrapper tr') this.sortable = Sortable.create(wrapperTr, { animation: 180, delay: 0, onEnd: (evt: any) => { let clone = JSON.parse(JSON.stringify(_this.newList)) clone.splice(evt.n...

read more..

Vue 动态引入路由文件

const routerList = [] const routerUrls = require.context('./router', true, /\.js/) console.log(routerUrls); routerUrls.keys().forEach(item=>{ routerList.push(...routerUrls(item).default) })

read more..

Docker-compose

wget https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-Linux-x86_64 mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose docker-compose --version curl -L https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x...

read more..

WebStorm

版本: 2022.2.2 生成: 222.4167.31 2022年9月15日 https://github.com/WishMelz/file/blob/master/2022/2022-jetbrains.zip # 引用补丁,开头必须以 -javaagent: 开头,后面跟着补丁的绝对路径(可根据你实际的位置进行修改),注意路径一定要填写正确,且不能包含中文,否则会导致 webstorm 无法启动 -javaagent:D:/ja-netfilter/ja-netfilter.jar # 最新 IDEA 版本需要添加下面两行...

read more..

nodejs 掘金自动签到

const Koa = require('koa'); const schedule = require('node-schedule'); const _request = require('request'); const app = new Koa(); // https://api.juejin.cn/growth_api/v1/check_in? // 自定义 const sessionid = ''; // SessionID const url = ''; // Url const options = { url: url, method:'post', headers: { 'cookie': 'sessionid='+ sessionid, ...

read more..

Vue滑动验证

created() { const url = 'https://ssl.captcha.qq.com/TCaptcha.js' const script = document.createElement('script') script.type = 'text/javascript' script.src = url document.body.appendChild(script) script.onload = () => { console.log(window.TencentCaptcha, 'script已经成功加载') this.getAppid() } }, varify() { ...

read more..