授权测试6
This commit is contained in:
parent
a538eaeda4
commit
b6951dd73c
@ -209,7 +209,7 @@ onBeforeMount(() => {
|
||||
|
||||
// 微信环境授权
|
||||
if (h5plugin.isWX()) {
|
||||
console.log("code:", h5plugin.getQueryString("code"));
|
||||
// console.log("code:", h5plugin.getQueryString("code"));
|
||||
|
||||
// if (h5plugin.getQueryString("code")) {
|
||||
// // 存在code的话去换取openid
|
||||
@ -221,10 +221,11 @@ onBeforeMount(() => {
|
||||
|
||||
|
||||
if(h5plugin.getQueryString("openid")){
|
||||
console.log("存在openid");
|
||||
apiAll();
|
||||
}else{
|
||||
console.log("不存在openid");
|
||||
getCode2();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user