加密 API 请求工具,对请求体进行 AES + RSA 加密传输。
import { postEncrypt } from '@/utils/encrypt-request' // 加密 POST 请求 postEncrypt('/api/user/sensitive', { phone: '13800138000', idCard: '110101199001011234' }).then(res => { console.log(res.data) })