提交 116abb1d 编写于 作者: 杜庆泉's avatar 杜庆泉

wifi autest.js 修改

上级 b7bb6c88
......@@ -5,9 +5,9 @@ export function startWifi() {
console.log('startWifi success');
resolve()
},
fail: () => {
complete: () => {
console.log('startWifi fail');
reject()
resolve()
}
})
})
......@@ -16,14 +16,7 @@ export function startWifi() {
export function stopWifi() {
return new Promise((resolve, reject) => {
uni.stopWifi({
success: () => {
console.log('stopWifi success');
resolve()
},
fail: () => {
console.log('stopWifi fail');
reject()
}
complete: resolve
})
})
}
......@@ -34,9 +27,8 @@ export function onGetWifiListAfter() {
success() {
setTimeout(resolve, 500)
},
fail: reject,
complete() {
stopWifi()
stopWifi().finally(resolve)
}
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册