This commit is contained in:
yanran200730
2022-01-19 16:38:16 +08:00
parent 7a8c1e51ed
commit 9bcbd390dd
2 changed files with 8 additions and 3 deletions

View File

@@ -330,7 +330,7 @@ const store = new Vuex.Store({
})
},
selectEnterpriseContact(state, params) {
return new Promise(resolve => {
return new Promise((resolve, reject) => {
state.dispatch("injectJWeixin", "selectEnterpriseContact").then(() => {
setTimeout(() => {
let sdk = typeof wx?.invoke == 'function' ? wx : jWeixin
@@ -345,6 +345,8 @@ const store = new Vuex.Store({
res.result = JSON.parse(res.result)
}
resolve(res.result)
} else {
reject(res)
}
})
}, 500)