const publicKey =‘加密公钥’ //后端给
import { JSEncrypt } from 'jsencrypt';
var encrypt = new JSEncrypt();
encrypt.setPublicKey(publicKey);
let password = encrypt.encrypt(fields.password); //password为需要加密的字段
const publicKey =‘加密公钥’ //后端给
import { JSEncrypt } from 'jsencrypt';
var encrypt = new JSEncrypt();
encrypt.setPublicKey(publicKey);
let password = encrypt.encrypt(fields.password); //password为需要加密的字段