import { JSEncrypt } from "jsencrypt"; // 加密 export const encryptedData = (data) => { let mishi = "AwSAJBALNflQ3EdFdC3gFmD4ElXBa" + "jYlo5/eNceSzMquB8pRHZzjuCA6vw2Zmoveb+cwZes90NpXqXNMqSmc6rE8ppVn8CAwEAAQ==" let encryptor = new JSEncrypt(); encryptor.setPublicKey(mishi); return encodeURIComponent(encryptor.encrypt(data)); }