谢杰标 3 лет назад
Родитель
Сommit
23e89e792b
2 измененных файлов с 1 добавлено и 2 удалено
  1. 0 2
      common/authorize.js
  2. 1 0
      utils/login.js

+ 0 - 2
common/authorize.js

@@ -1,6 +1,5 @@
 import { getWxConfig, getMobileConfig, OfficialLogin } from "@/utils/user";
 import { getOpenId } from "@/utils/login";
-
 export function getQueryString(name) {
   const url = location.search; //获取url中"?"符后的字串
   let theRequest = new Object();
@@ -70,7 +69,6 @@ export function backOpenId(cb) {
     return;
   }
   getOpenId({ code }).then((res) => {
-    console.log(res);
     uni.setStorageSync("openid", res.openid);
     uni.setStorageSync("unionid", res.unionid);
     cb && cb(res.openid);

+ 1 - 0
utils/login.js

@@ -33,6 +33,7 @@ export function openidLogin(data) {
     method: "post",
     data: data,
     noToken: true,
+    noLoading: true,
   });
 }
 // 获取openid