封装 HttpClient,统一管理 Token、Loading 和异常处理
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
import { createRsaPair, base64Decode, base64Encode, } from "@/uni_modules/laoqianjunzi-crypto";
|
||||
|
||||
// 在插件中,h5不会导出CryptoRsaPair,需要自定义,等待后续作者处理
|
||||
// #ifdef H5
|
||||
type CryptoRsaPair = {
|
||||
publicKey : string;
|
||||
@@ -7,9 +7,9 @@ type CryptoRsaPair = {
|
||||
}
|
||||
// #endif
|
||||
// #ifdef APP-ANDROID
|
||||
import { CryptoRsaPair } from "@/uni_modules/laoqianjunzi-crypto";
|
||||
import { CryptoRsaPair } from "@/uni_modules/laoqianjunzi-crypto";
|
||||
// #endif
|
||||
|
||||
|
||||
export class Crypto {
|
||||
/**
|
||||
* 随机生成32位的字符串
|
||||
|
||||
Reference in New Issue
Block a user