From 566c35444def62d13f0c76c3a8e642cd234b2b45 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 19 九月 2025 14:16:52 +0800
Subject: [PATCH] ss
---
h5/uni.promisify.adaptor.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/h5/uni.promisify.adaptor.js b/h5/uni.promisify.adaptor.js
index 47fbce1..5fec4f3 100644
--- a/h5/uni.promisify.adaptor.js
+++ b/h5/uni.promisify.adaptor.js
@@ -4,7 +4,10 @@
return res;
}
return new Promise((resolve, reject) => {
- res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
+ res.then((res) => {
+ if (!res) return resolve(res)
+ return res[0] ? reject(res[0]) : resolve(res[1])
+ });
});
},
});
\ No newline at end of file
--
Gitblit v1.9.3