diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0e8e0a8dd5ecf830ac20824db032735fabce7616..f64e148578503d6c5cbc4b004ab9acff01ac86a3 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -9,6 +9,8 @@
+
+
@@ -39,6 +41,28 @@
onMemoryWarning:function(res){
console.log(res);
},
+ fn:function(res){
+ console.log(res)
+ },
+ onGetWifiList2_assert0() {
+ const fn = res => console.log('onGetWifiList res', res)
+ uni.startWifi({success(){
+ uni.onGetWifiList(fn)
+ uni.getWifiList({
+ success() {
+ console.log('getWifiList success');
+ uni.offGetWifiList(fn)
+ uni.stopWifi({
+ success() {},
+ fail(e) {
+ console.log("stopWifi fail: ",e);
+ }
+ })
+ }
+ })
+ }})
+ },
+
testConnnectWifi(){
uni.startWifi({
diff --git a/uni_modules/uni-wifi/utssdk/app-android/index.uts b/uni_modules/uni-wifi/utssdk/app-android/index.uts
index bac149311fc9088901584cba46156628af58393d..6a9dc9b93e727a8fcee3b0ae3a1fbdec468db084 100644
--- a/uni_modules/uni-wifi/utssdk/app-android/index.uts
+++ b/uni_modules/uni-wifi/utssdk/app-android/index.uts
@@ -539,6 +539,8 @@ export function onGetWifiList(callback : UTSCallback) {
*/
export function offGetWifiList(callback? : UTSCallback) {
Global.onGetWifiListCallback = null
+ Global.supendGetWifiComplete = null
+ Global.supendGetWifiSuccess = null
}