ruoyi-vue 前端引入 jsencrypt 做传输加密
```javascript
import JSEncrypt from './jsencrypt.min'
import {JSEncrypt} from './jsencrypt.min'
// 上述两个试了,不行 ,jsencrypt.min.js文件是放在同级目录下的
export function encrypt(txt, publicKey) {
console.log("publicKey",publicKey);
const encryptor = new JSEncrypt();
encryptor.setPublicKey(publicKey) ;// 设置公钥
return encryptor.encrypt(txt); // 对数据
}
```