egg使用jwt验证

原理:vue前端登录,提交账号密码给egg后端,后端比对信息后,使用jsonwebtoken对用户信息进行签名生成token,之后通过cookie返回给vue前端,前端需要使用token里的信息就使用...

常用util

/ 存储localStorage / export const setStore = (name, content) => { if (!name) return; if (typeof con...

v2ray

https://www.v2ray.com/chapter00/install.html  https://sixu.life/cloudflare-v2ray-ip.html caddy&...

axios上传文件

二、实现方法 1、读取文件 通过input标签,我们可以得到一个file文件将这个file进行处理。 <input class="upload" type="file" ref="upload"...